From 0ed86aca7158ff5bfeaca08dd7a27f063f833ad0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jul 2003 23:23:41 +0000 Subject: [PATCH] Be const correct llvm-svn: 7348 --- llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp index 6cc271a7d30a..e8778220cbaa 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){