diff options
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/LowerSetJmp.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index 27757614ce..19b61907be 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -424,7 +424,7 @@ void DAE::RemoveDeadArgumentsFromFunction(Function *F) { Instruction *New; if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { - New = new InvokeInst(NF, II->getNormalDest(), II->getExceptionalDest(), + New = new InvokeInst(NF, II->getNormalDest(), II->getUnwindDest(), Args, "", Call); } else { New = new CallInst(NF, Args, "", Call); 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; } diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 7c0a73e19b..7c4fc221c9 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -113,7 +113,7 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { // Anything that used the value produced by the invoke instruction // now uses the value produced by the call instruction. II->replaceAllUsesWith(Call); - II->getExceptionalDest()->removePredecessor(II->getParent()); + II->getUnwindDest()->removePredecessor(II->getParent()); // Insert a branch to the normal destination right before the // invoke. |