@@ -10587,10 +10587,9 @@ void ARMTargetLowering::EmitSjLjDispatchBlock(MachineInstr &MI,
10587
10587
LPadList.reserve(CallSiteNumToLPad.size());
10588
10588
for (unsigned I = 1; I <= MaxCSNum; ++I) {
10589
10589
SmallVectorImpl<MachineBasicBlock*> &MBBList = CallSiteNumToLPad[I];
10590
- for (SmallVectorImpl<MachineBasicBlock*>::iterator
10591
- II = MBBList.begin(), IE = MBBList.end(); II != IE; ++II) {
10592
- LPadList.push_back(*II);
10593
- InvokeBBs.insert((*II)->pred_begin(), (*II)->pred_end());
10590
+ for (MachineBasicBlock *MBB : MBBList) {
10591
+ LPadList.push_back(MBB);
10592
+ InvokeBBs.insert(MBB->pred_begin(), MBB->pred_end());
10594
10593
}
10595
10594
}
10596
10595
@@ -10879,9 +10878,7 @@ void ARMTargetLowering::EmitSjLjDispatchBlock(MachineInstr &MI,
10879
10878
10880
10879
// Add the jump table entries as successors to the MBB.
10881
10880
SmallPtrSet<MachineBasicBlock*, 8> SeenMBBs;
10882
- for (std::vector<MachineBasicBlock*>::iterator
10883
- I = LPadList.begin(), E = LPadList.end(); I != E; ++I) {
10884
- MachineBasicBlock *CurMBB = *I;
10881
+ for (MachineBasicBlock *CurMBB : LPadList) {
10885
10882
if (SeenMBBs.insert(CurMBB).second)
10886
10883
DispContBB->addSuccessor(CurMBB);
10887
10884
}
@@ -10943,9 +10940,8 @@ void ARMTargetLowering::EmitSjLjDispatchBlock(MachineInstr &MI,
10943
10940
10944
10941
// Mark all former landing pads as non-landing pads. The dispatch is the only
10945
10942
// landing pad now.
10946
- for (SmallVectorImpl<MachineBasicBlock*>::iterator
10947
- I = MBBLPads.begin(), E = MBBLPads.end(); I != E; ++I)
10948
- (*I)->setIsEHPad(false);
10943
+ for (MachineBasicBlock *MBBLPad : MBBLPads)
10944
+ MBBLPad->setIsEHPad(false);
10949
10945
10950
10946
// The instruction is gone now.
10951
10947
MI.eraseFromParent();
0 commit comments