diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-22 02:20:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-22 02:20:36 +0000 |
commit | f40cdbe856e8a15b3186de29c7f0bcedb3a8ca86 (patch) | |
tree | f1ab2d93c907c949a0c4cc9b4bb8e14eec34d420 | |
parent | 519900a36dfd4970385b7f26a82470eaf655ce12 (diff) | |
download | bcm5719-llvm-f40cdbe856e8a15b3186de29c7f0bcedb3a8ca86.tar.gz bcm5719-llvm-f40cdbe856e8a15b3186de29c7f0bcedb3a8ca86.zip |
Fix bug: Transforms/PruneEH/2003-11-21-PHIUpdate.llx
llvm-svn: 10163
-rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 74e0d33d412..1ef2809e9d3 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/lib/Transforms/IPO/PruneEH.cpp @@ -91,12 +91,14 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) { // Anything that used the value produced by the invoke instruction // now uses the value produced by the call instruction. II->replaceAllUsesWith(Call); + II->getExceptionalDest()->removePredecessor(II->getParent()); // Insert a branch to the normal destination right before the // invoke. new BranchInst(II->getNormalDest(), II); // Finally, delete the invoke instruction! + I->getInstList().pop_back(); ++NumRemoved; |