rename the "exceptional" destination of an invoke instruction to the 'unwind' dest

llvm-svn: 11202
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 8edf9d07..3c88659 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -106,7 +106,7 @@
   // 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