llvm.org GIT mirror llvm / 0ea6f98
Use range-based for loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224106 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
554554
555555 if (OptLevelO1 || OptLevelO2 || OptLevelOs || OptLevelOz || OptLevelO3) {
556556 FPasses->doInitialization();
557 for (Module::iterator F = M->begin(), E = M->end(); F != E; ++F)
558 FPasses->run(*F);
557 for (Function &F : *M)
558 FPasses->run(F);
559559 FPasses->doFinalization();
560560 }
561561