Be const correct

llvm-svn: 7348
This commit is contained in:
Chris Lattner 2003-07-26 23:23:41 +00:00
parent 1316383267
commit 0ed86aca71
1 changed files with 2 additions and 2 deletions

View File

@ -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){