diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:37:58 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:37:58 +0000 |
commit | 1e3d420da5741d66d92287ed5d29139ad146b1d7 (patch) | |
tree | 8b98ced441d0a442976c1930415cac505ac63a3f /include/llvm/Analysis/BlockFrequencyInfoImpl.h | |
parent | 6f1f9f4c7f8a5de44c2bcd610fa909f17860fbd1 (diff) | |
download | llvm-1e3d420da5741d66d92287ed5d29139ad146b1d7.tar.gz llvm-1e3d420da5741d66d92287ed5d29139ad146b1d7.tar.bz2 llvm-1e3d420da5741d66d92287ed5d29139ad146b1d7.tar.xz |
blockfreq: Stop using range-based for to traverse Loops
A follow-up commit will need the actual iterators.
<rdar://problem/14292693>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/BlockFrequencyInfoImpl.h')
-rw-r--r-- | include/llvm/Analysis/BlockFrequencyInfoImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index 310b23f0ea..78f7e84142 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -1471,8 +1471,8 @@ template <class BT> void BlockFrequencyInfoImpl<BT>::initializeLoops() { template <class BT> void BlockFrequencyInfoImpl<BT>::computeMassInLoops() { // Visit loops with the deepest first, and the top-level loops last. - for (const auto &L : make_range(Loops.rbegin(), Loops.rend())) - computeMassInLoop(L.Header); + for (auto L = Loops.rbegin(), E = Loops.rend(); L != E; ++L) + computeMassInLoop(L->Header); } template <class BT> |