[NFC] Converting to range-based for.

llvm-svn: 236163
This commit is contained in:
Chris Bieneman 2015-04-29 21:45:22 +00:00
parent 881b23402e
commit 664294cf37
1 changed files with 1 additions and 2 deletions

View File

@ -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;