[llvm-commits] CVS: llvm/lib/CodeGen/PHIElimination.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 31 16:00:06 PST 2004
Changes in directory llvm/lib/CodeGen:
PHIElimination.cpp updated: 1.20 -> 1.21
---
Log message:
MachineBasicBlock::remove should not modify the iterator passed in
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.20 llvm/lib/CodeGen/PHIElimination.cpp:1.21
--- llvm/lib/CodeGen/PHIElimination.cpp:1.20 Mon Feb 23 12:38:20 2004
+++ llvm/lib/CodeGen/PHIElimination.cpp Wed Mar 31 15:59:29 2004
@@ -71,8 +71,7 @@
while (MBB.front().getOpcode() == TargetInstrInfo::PHI) {
// Unlink the PHI node from the basic block... but don't delete the PHI yet
- MachineBasicBlock::iterator begin = MBB.begin();
- MachineInstr *MI = MBB.remove(begin);
+ MachineInstr *MI = MBB.remove(MBB.begin());
assert(MRegisterInfo::isVirtualRegister(MI->getOperand(0).getReg()) &&
"PHI node doesn't write virt reg?");
More information about the llvm-commits
mailing list