diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-24 23:23:06 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-24 23:23:06 +0000 |
commit | 4627679cece264a966faa82a7c5bb79f273d5b6e (patch) | |
tree | 227f40fbf1eb4d5208e75d3eb98ba20e829feaa6 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 085fc4d6c679055fc603650e7d29579b262e11a8 (diff) | |
download | bcm5719-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/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 9d332cad9c5..4a1b3386990 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -711,8 +711,7 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) { SmallPtrSet<MachineBasicBlock*, 8> Reachable; // Iterate over the reachable blocks in DFS order. - for (df_ext_iterator<MachineFunction*, SmallPtrSet<MachineBasicBlock*, 8> > - DFI = df_ext_begin(&Fn, Reachable), DFE = df_ext_end(&Fn, Reachable); + for (auto DFI = df_ext_begin(&Fn, Reachable), DFE = df_ext_end(&Fn, Reachable); DFI != DFE; ++DFI) { int SPAdj = 0; // Check the exit state of the DFS stack predecessor. |