diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-26 17:27:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-26 17:27:42 +0000 |
commit | aa2091505f6de0ababf8a6ec54e8a26c8b0be2be (patch) | |
tree | 124f3edf32b0d056358b0d313f04fee8feb2d1cb /llvm/lib/Analysis/IntervalPartition.cpp | |
parent | d8db1e172cf320490c273380b847690007247b11 (diff) | |
download | bcm5719-llvm-aa2091505f6de0ababf8a6ec54e8a26c8b0be2be.tar.gz bcm5719-llvm-aa2091505f6de0ababf8a6ec54e8a26c8b0be2be.zip |
Apply clang-tidy's modernize-loop-convert to lib/Analysis.
Only minor manual fixes. No functionality change intended.
llvm-svn: 273816
Diffstat (limited to 'llvm/lib/Analysis/IntervalPartition.cpp')
-rw-r--r-- | llvm/lib/Analysis/IntervalPartition.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IntervalPartition.cpp b/llvm/lib/Analysis/IntervalPartition.cpp index a0583e86d18..a4e56e0694b 100644 --- a/llvm/lib/Analysis/IntervalPartition.cpp +++ b/llvm/lib/Analysis/IntervalPartition.cpp @@ -57,9 +57,8 @@ void IntervalPartition::addIntervalToPartition(Interval *I) { // void IntervalPartition::updatePredecessors(Interval *Int) { BasicBlock *Header = Int->getHeaderNode(); - for (Interval::succ_iterator I = Int->Successors.begin(), - E = Int->Successors.end(); I != E; ++I) - getBlockInterval(*I)->Predecessors.push_back(Header); + for (BasicBlock *Successor : Int->Successors) + getBlockInterval(Successor)->Predecessors.push_back(Header); } // IntervalPartition ctor - Build the first level interval partition for the |