diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-26 14:10:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-26 14:10:56 +0000 |
commit | af28e7d6fa1fdaf3a7a63e4564b3b8d30d4e9133 (patch) | |
tree | 5beb9de8291820460f0297b7389e2e8f28218bf4 /llvm/lib/IR/BasicBlock.cpp | |
parent | 57819aa185196b8d3c4dda3c2282d2128aef3a51 (diff) | |
download | bcm5719-llvm-af28e7d6fa1fdaf3a7a63e4564b3b8d30d4e9133.tar.gz bcm5719-llvm-af28e7d6fa1fdaf3a7a63e4564b3b8d30d4e9133.zip |
Apply clang-tidy's modernize-loop-convert to most of lib/IR.
Only minor manual fixes. No functionality change intended.
llvm-svn: 273813
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index 9f806fad680..4640b4f9d41 100644 --- a/llvm/lib/IR/BasicBlock.cpp +++ b/llvm/lib/IR/BasicBlock.cpp @@ -217,8 +217,8 @@ BasicBlock::iterator BasicBlock::getFirstInsertionPt() { } void BasicBlock::dropAllReferences() { - for(iterator I = begin(), E = end(); I != E; ++I) - I->dropAllReferences(); + for (Instruction &I : *this) + I.dropAllReferences(); } /// If this basic block has a single predecessor block, |