diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-08 21:44:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-08 21:44:31 +0000 |
commit | fae8ab3088e339af403014983165abeebc202740 (patch) | |
tree | 1892cd47e93d7ea36a7f6b8051375654c9b6741f /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 35630adf54118c97f9bcc5c025eeb69df3ff7a39 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |