[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 2 14:38:45 PST 2004
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.33 -> 1.34
---
Log message:
Fix the obvious bug in my previous checkin
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.33 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.34
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.33 Fri Apr 2 12:13:43 2004
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Fri Apr 2 12:15:10 2004
@@ -701,6 +701,9 @@
if (FVPN->getParent() == FalseSucc)
FalseValue = FVPN->getIncomingValueForBlock(BI->getParent());
+ TrueSucc->removePredecessor(BI->getParent());
+ FalseSucc->removePredecessor(BI->getParent());
+
// Insert a new select instruction.
Value *NewRetVal = new SelectInst(BI->getCondition(), TrueValue,
FalseValue, "retval", BI);
More information about the llvm-commits
mailing list