diff options
Diffstat (limited to 'lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerInvoke.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index bd9c8bcc3e..83294653ef 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -169,7 +169,7 @@ bool LowerInvoke::insertCheapEHSupport(Function &F) { new BranchInst(II->getNormalDest(), II); // Remove any PHI node entries from the exception destination. - II->getExceptionalDest()->removePredecessor(BB); + II->getUnwindDest()->removePredecessor(BB); // Remove the invoke instruction now. BB->getInstList().erase(II); @@ -256,7 +256,7 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { new StoreInst(OldEntry, JBListHead, InsertLoc); // Now we change the invoke into a branch instruction. - new BranchInst(II->getNormalDest(), II->getExceptionalDest(), IsNormal, II); + new BranchInst(II->getNormalDest(), II->getUnwindDest(), IsNormal, II); // Remove the InvokeInst now. BB->getInstList().erase(II); |