[llvm-commits] CVS: llvm/lib/Transforms/IPO/PruneEH.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 21 20:21:11 PST 2003
Changes in directory llvm/lib/Transforms/IPO:
PruneEH.cpp updated: 1.7 -> 1.8
---
Log message:
Fix bug: Transforms/PruneEH/2003-11-21-PHIUpdate.llx
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/Transforms/IPO/PruneEH.cpp
diff -u llvm/lib/Transforms/IPO/PruneEH.cpp:1.7 llvm/lib/Transforms/IPO/PruneEH.cpp:1.8
--- llvm/lib/Transforms/IPO/PruneEH.cpp:1.7 Fri Nov 21 15:54:22 2003
+++ llvm/lib/Transforms/IPO/PruneEH.cpp Fri Nov 21 20:20:36 2003
@@ -91,12 +91,14 @@
// 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;
More information about the llvm-commits
mailing list