summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-08 21:44:31 +0000
committerChris Lattner <sabre@nondot.org>2004-02-08 21:44:31 +0000
commitfae8ab3088e339af403014983165abeebc202740 (patch)
tree1892cd47e93d7ea36a7f6b8051375654c9b6741f /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent35630adf54118c97f9bcc5c025eeb69df3ff7a39 (diff)
downloadbcm5719-llvm-fae8ab3088e339af403014983165abeebc202740.tar.gz
bcm5719-llvm-fae8ab3088e339af403014983165abeebc202740.zip
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
llvm-svn: 11202
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index b827123e609..8aec92a9f4d 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -115,7 +115,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
while (!Preds.empty()) {
BasicBlock *Pred = Preds.back();
if (InvokeInst *II = dyn_cast<InvokeInst>(Pred->getTerminator()))
- if (II->getExceptionalDest() == BB) {
+ if (II->getUnwindDest() == BB) {
// Insert a new branch instruction before the invoke, because this
// is now a fall through...
BranchInst *BI = new BranchInst(II->getNormalDest(), II);
OpenPOWER on IntegriCloud