summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-26 23:23:41 +0000
committerChris Lattner <sabre@nondot.org>2003-07-26 23:23:41 +0000
commit0ed86aca7158ff5bfeaca08dd7a27f063f833ad0 (patch)
tree2ed34f13e69f9d7fa76f1d35132cf1d0fe93d783 /llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
parent131638326749f06831f6aa593e36d04dd336846f (diff)
downloadbcm5719-llvm-0ed86aca7158ff5bfeaca08dd7a27f063f833ad0.tar.gz
bcm5719-llvm-0ed86aca7158ff5bfeaca08dd7a27f063f833ad0.zip
Be const correct
llvm-svn: 7348
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index 6cc271a7d30..e8778220cba 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -1197,9 +1197,9 @@ static void ReplaceNopsWithUsefulInstr(SchedulingManager& S,
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){
OpenPOWER on IntegriCloud