[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jan 14 00:04:01 PST 2004


Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Execution.cpp updated: 1.120 -> 1.121

---
Log message:

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.


---
Diffs of the changes:  (+4 -1)

Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.120 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.121
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.120	Sun Dec 28 15:23:38 2003
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp	Wed Jan 14 00:02:53 2004
@@ -767,7 +767,10 @@
 
   // 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 @@
       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();





More information about the llvm-commits mailing list