[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 26 18:31:01 PDT 2003
Changes in directory llvm/lib/CodeGen/RegAlloc:
PhyRegAlloc.cpp updated: 1.99 -> 1.100
---
Log message:
Making this code const-correct would be a pain, so I'll hack it.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.99 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.100
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.99 Fri Jul 25 16:06:09 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Sat Jul 26 18:29:51 2003
@@ -569,7 +569,7 @@
//
for (MachineBasicBlock::iterator MII = MBB.begin(); MII != MBB.end(); ++MII)
if (!TM.getInstrInfo().isDummyPhiInstr((*MII)->getOpCode()))// ignore Phis
- updateInstruction(*MII, MBB.getBasicBlock());
+ updateInstruction(*MII, const_cast<BasicBlock*>(MBB.getBasicBlock()));
// Now, move code out of delay slots of branches and returns if needed.
// (Also, move "after" code from calls to the last delay slot instruction.)
More information about the llvm-commits
mailing list