We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695b868 commit 053c0adCopy full SHA for 053c0ad
llvm/lib/Target/Mips/MipsBranchExpansion.cpp
@@ -299,9 +299,8 @@ void MipsBranchExpansion::initMBBInfo() {
299
MachineBasicBlock *MBB = MFp->getBlockNumbered(I);
300
301
// Compute size of MBB.
302
- for (MachineBasicBlock::instr_iterator MI = MBB->instr_begin();
303
- MI != MBB->instr_end(); ++MI)
304
- MBBInfos[I].Size += TII->getInstSizeInBytes(*MI);
+ for (MachineInstr &MI : MBB->instrs())
+ MBBInfos[I].Size += TII->getInstSizeInBytes(MI);
305
}
306
307
0 commit comments