From ad373c8576d10a3cb51366d628023df527db023f Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 23 Apr 2004 18:05:28 +0000 Subject: Go back to the interpreter main loop after performing intrinsic lowering, 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). llvm-svn: 13122 --- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp') diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 2ecd72eb3b9..769d0e6e96f 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -822,6 +822,7 @@ void Interpreter::visitCallSite(CallSite CS) { SF.CurInst = Prev; ++SF.CurInst; } + return; } SF.Caller = CS; -- cgit v1.2.3