summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-23 18:05:28 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-23 18:05:28 +0000
commitad373c8576d10a3cb51366d628023df527db023f (patch)
treee409f89524b700a27592726676815b56c94180fc /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
parent11550c1deb60de3e30ce5866d0c5c2aa0f3dbf8a (diff)
downloadbcm5719-llvm-ad373c8576d10a3cb51366d628023df527db023f.tar.gz
bcm5719-llvm-ad373c8576d10a3cb51366d628023df527db023f.zip
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
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud