[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 31 16:01:05 PST 2004


Changes in directory llvm/lib/Target/SparcV9/RegAlloc:

PhyRegAlloc.cpp updated: 1.145 -> 1.146

---
Log message:

MBB::remove should not modify the iterator passed in


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.145 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.146
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.145	Mon Mar 29 15:58:41 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp	Wed Mar 31 15:59:59 2004
@@ -542,7 +542,7 @@
               }
 
               // move instruction before branch
-              MBB.insert(MII, MBB.remove(DelaySlotMI));
+              MBB.insert(MII, MBB.remove(DelaySlotMI++));
 
               // On cond1 we are done (we already moved the
               // instruction out of the delay slot). On cond2 we need





More information about the llvm-commits mailing list