diff options
author | Chris Bieneman <beanz@apple.com> | 2015-04-29 21:45:22 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-04-29 21:45:22 +0000 |
commit | 664294cf37117ed727388ed3f04baa2fa7aecf5b (patch) | |
tree | 6e2f7e7b06d0d986122491db6655f33ac5011688 /llvm/lib/IR/LegacyPassManager.cpp | |
parent | 881b23402e4feb709a117119803042f400e8712c (diff) | |
download | llvm-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.cpp | 3 |
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; |