diff options
Diffstat (limited to 'llvm/lib/Target/Mips/MipsLongBranch.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsLongBranch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsLongBranch.cpp b/llvm/lib/Target/Mips/MipsLongBranch.cpp index db11291a4df..e8cb45ecca3 100644 --- a/llvm/lib/Target/Mips/MipsLongBranch.cpp +++ b/llvm/lib/Target/Mips/MipsLongBranch.cpp @@ -165,8 +165,8 @@ void MipsLongBranch::splitMBB(MachineBasicBlock *MBB) { void MipsLongBranch::initMBBInfo() { // Split the MBBs if they have two branches. Each basic block should have at // most one branch after this loop is executed. - for (MachineFunction::iterator I = MF->begin(), E = MF->end(); I != E;) - splitMBB(&*I++); + for (auto &MBB : *MF) + splitMBB(&MBB); MF->RenumberBlocks(); MBBInfos.clear(); |