aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-01-14 06:02:53 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-01-14 06:02:53 +0000
commit34562bab046cc091f95ae5333b57ea2538f18336 (patch)
treec94b4fd764973b3da85d301228d990af6b6802a1 /lib/ExecutionEngine/Interpreter/Execution.cpp
parentf6e180324e6ffef7489dc02bae32e8713a935611 (diff)
Don't pass anything to the IntrinsicLowering class that is not_intrinsic,
because that makes it abort. Also, fix a typo in a comment. This checkin brought to you by the "It only takes about 30 seconds to run ENABLE_LLI tests on Shootout on zion, even if they all dump core" fund. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index eec647a184..22812c3adb 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -767,7 +767,10 @@ void Interpreter::visitCallSite(CallSite CS) {
// Check to see if this is an intrinsic function call...
if (Function *F = CS.getCalledFunction())
+ if (F->isExternal ())
switch (F->getIntrinsicID()) {
+ case Intrinsic::not_intrinsic:
+ break;
case Intrinsic::va_start: // va_start: implemented by getFirstVarArg()
SetValue(CS.getInstruction(), getFirstVarArg(), SF);
return;
@@ -777,7 +780,7 @@ void Interpreter::visitCallSite(CallSite CS) {
SetValue(CS.getInstruction(), getOperandValue(*CS.arg_begin(), SF), SF);
return;
default:
- // If it is an unknown intrinsic function, using the intrinsic lowering
+ // If it is an unknown intrinsic function, use the intrinsic lowering
// class to transform it into hopefully tasty LLVM code.
//
Instruction *Prev = CS.getInstruction()->getPrev();