rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
[oota-llvm.git] / lib / Transforms / Utils / InlineFunction.cpp
index 8edf9d071b15a97c1cd0c276dc0e7ef510e72b03..3c886596983863f092243dc47ea3979d38315eae 100644 (file)
@@ -106,7 +106,7 @@ bool llvm::InlineFunction(CallSite CS) {
   // any inlined 'unwind' instructions into branches to the invoke exception
   // destination, and call instructions into invoke instructions.
   if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) {
-    BasicBlock *InvokeDest = II->getExceptionalDest();
+    BasicBlock *InvokeDest = II->getUnwindDest();
     std::vector<Value*> InvokeDestPHIValues;
 
     // If there are PHI nodes in the exceptional destination block, we need to