From 664294cf37117ed727388ed3f04baa2fa7aecf5b Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 29 Apr 2015 21:45:22 +0000 Subject: [PATCH] [NFC] Converting to range-based for. llvm-svn: 236163 --- llvm/lib/IR/LegacyPassManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.7.4