rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
[oota-llvm.git] / lib / Transforms / Utils / LowerInvoke.cpp
index bd9c8bcc3e3d4ece48745d5ba7d27f53735646cc..83294653ef3f68216fd55a238325575cd9b4381d 100644 (file)
@@ -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);