aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LegacyPassManager.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-04-29 21:45:22 +0000
committerChris Bieneman <beanz@apple.com>2015-04-29 21:45:22 +0000
commit664294cf37117ed727388ed3f04baa2fa7aecf5b (patch)
tree6e2f7e7b06d0d986122491db6655f33ac5011688 /llvm/lib/IR/LegacyPassManager.cpp
parent881b23402e4feb709a117119803042f400e8712c (diff)
downloadllvm-664294cf37117ed727388ed3f04baa2fa7aecf5b.zip
llvm-664294cf37117ed727388ed3f04baa2fa7aecf5b.tar.gz
llvm-664294cf37117ed727388ed3f04baa2fa7aecf5b.tar.bz2
[NFC] Converting to range-based for.
llvm-svn: 236163
Diffstat (limited to 'llvm/lib/IR/LegacyPassManager.cpp')
-rw-r--r--llvm/lib/IR/LegacyPassManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp
index 6870032..bbec642 100644
--- a/llvm/lib/IR/LegacyPassManager.cpp
+++ b/llvm/lib/IR/LegacyPassManager.cpp
@@ -88,8 +88,7 @@ PrintAfterAll("print-after-all",
static bool ShouldPrintBeforeOrAfterPass(const PassInfo *PI,
PassOptionList &PassesToPrint) {
- for (unsigned i = 0, ie = PassesToPrint.size(); i < ie; ++i) {
- const llvm::PassInfo *PassInf = PassesToPrint[i];
+ for (auto *PassInf : PassesToPrint) {
if (PassInf)
if (PassInf->getPassArgument() == PI->getPassArgument()) {
return true;