Go back to the interpreter main loop after performing intrinsic lowering,
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 23 Apr 2004 18:05:28 +0000 (18:05 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 23 Apr 2004 18:05:28 +0000 (18:05 +0000)
because 1) the first instruction might not be a call site, and
2) CS and SF.Caller were not getting set to point to the new call site
anyway (resulting in a crash on e.g. call %llvm.memset).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13122 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 2ecd72eb3b94de7d04ff40f8704797f192b790fe..769d0e6e96f43a635bbbe9aa439980843b983991 100644 (file)
@@ -822,6 +822,7 @@ void Interpreter::visitCallSite(CallSite CS) {
         SF.CurInst = Prev;
         ++SF.CurInst;
       }
+      return;
     }
 
   SF.Caller = CS;