[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jul 26 18:24:01 PDT 2003


Changes in directory llvm/lib/CodeGen/InstrSched:

InstrScheduling.cpp updated: 1.53 -> 1.54

---
Log message:

Be const correct


---
Diffs of the changes:

Index: llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
diff -u llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.53 llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.54
--- llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp:1.53	Thu May 22 16:49:18 2003
+++ llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp	Sat Jul 26 18:23:41 2003
@@ -1197,9 +1197,9 @@
         nopNodeVec.push_back(graph->getGraphNodeForInstr(MBB[i]));
 	  
         //remove the MI from the Machine Code For Instruction
-        TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
+        const TerminatorInst *TI = MBB.getBasicBlock()->getTerminator();
         MachineCodeForInstruction& llvmMvec = 
-          MachineCodeForInstruction::get((Instruction *)TI);
+          MachineCodeForInstruction::get((const Instruction *)TI);
           
         for(MachineCodeForInstruction::iterator mciI=llvmMvec.begin(), 
               mciE=llvmMvec.end(); mciI!=mciE; ++mciI){





More information about the llvm-commits mailing list