[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 16 11:20:11 PDT 2004
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Execution.cpp updated: 1.133 -> 1.134
---
Log message:
Add support for unreachable
---
Diffs of the changes: (+5 -0)
Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.133 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.134
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.133 Wed Sep 15 12:06:41 2004
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp Sat Oct 16 13:20:00 2004
@@ -616,6 +616,11 @@
SwitchToNewBasicBlock(cast<InvokeInst>(Inst)->getUnwindDest(), InvokingSF);
}
+void Interpreter::visitUnreachableInst(UnreachableInst &I) {
+ std::cerr << "ERROR: Program executed an 'unreachable' instruction!\n";
+ abort();
+}
+
void Interpreter::visitBranchInst(BranchInst &I) {
ExecutionContext &SF = ECStack.back();
BasicBlock *Dest;
More information about the llvm-commits
mailing list