summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-24 23:23:06 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-24 23:23:06 +0000
commit4627679cece264a966faa82a7c5bb79f273d5b6e (patch)
tree227f40fbf1eb4d5208e75d3eb98ba20e829feaa6 /llvm/lib/Target/ARM
parent085fc4d6c679055fc603650e7d29579b262e11a8 (diff)
downloadbcm5719-llvm-4627679cece264a966faa82a7c5bb79f273d5b6e.tar.gz
bcm5719-llvm-4627679cece264a966faa82a7c5bb79f273d5b6e.zip
Use range based for loops to avoid needing to re-mention SmallPtrSet size.
llvm-svn: 216351
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 8478a59e71a..c0d38dfccff 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -6924,9 +6924,7 @@ EmitSjLjDispatchBlock(MachineInstr *MI, MachineBasicBlock *MBB) const {
// N.B. the order the invoke BBs are processed in doesn't matter here.
const MCPhysReg *SavedRegs = RI.getCalleeSavedRegs(MF);
SmallVector<MachineBasicBlock*, 64> MBBLPads;
- for (SmallPtrSet<MachineBasicBlock*, 64>::iterator
- I = InvokeBBs.begin(), E = InvokeBBs.end(); I != E; ++I) {
- MachineBasicBlock *BB = *I;
+ for (MachineBasicBlock *BB : InvokeBBs) {
// Remove the landing pad successor from the invoke block and replace it
// with the new dispatch block.
OpenPOWER on IntegriCloud