diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:21:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:21:33 +0000 |
commit | ec7c1ab1dafa0fdb383d0e6df4726cecb4c88c70 (patch) | |
tree | 4050bba6a75b892bc23a261065c5f1c1afc3a51a /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | bd1d382cc47dfc43ee758714bc22ab5a750bad15 (diff) |
Add support for unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 589ac7f99d..8616656360 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -616,6 +616,11 @@ void Interpreter::visitUnwindInst(UnwindInst &I) { 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; |