summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-08 21:44:31 +0000
committerChris Lattner <sabre@nondot.org>2004-02-08 21:44:31 +0000
commitaeb2a1d70807aa626f335fb23d47bc604ffeaa15 (patch)
treeef4d4e8c8794fb6ddfb4148f6d5ebe91987bf72a /lib/Transforms/IPO/LowerSetJmp.cpp
parent95778a02572d2d5e0e4bea6ef2ec95b2964c05be (diff)
downloadllvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.tar.gz
llvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.tar.bz2
llvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.tar.xz
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index a2146f47de..f79ab0dbf7 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/lib/Transforms/IPO/LowerSetJmp.cpp
@@ -489,7 +489,7 @@ void LowerSetJmp::visitInvokeInst(InvokeInst& II)
if (!DFSBlocks.count(BB)) return;
BasicBlock* NormalBB = II.getNormalDest();
- BasicBlock* ExceptBB = II.getExceptionalDest();
+ BasicBlock* ExceptBB = II.getUnwindDest();
Function* Func = BB->getParent();
BasicBlock* NewExceptBB = new BasicBlock("InvokeExcept", Func);
@@ -503,7 +503,7 @@ void LowerSetJmp::visitInvokeInst(InvokeInst& II)
new BranchInst(PrelimBBMap[Func], ExceptBB, IsLJExcept, NewExceptBB);
- II.setExceptionalDest(NewExceptBB);
+ II.setUnwindDest(NewExceptBB);
++InvokesTransformed;
}