Skip to content

Commit e25abd0

Browse files
[bugpoint] Use a range-based for loop (NFC) (#140743)
1 parent cbac2a9 commit e25abd0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/tools/bugpoint/FindBugs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ BugDriver::runManyPasses(const std::vector<std::string> &AllPasses) {
4747
// Step 2: Run optimizer passes on the program and check for success.
4848
//
4949
outs() << "Running selected passes on program to test for crash: ";
50-
for (int i = 0, e = PassesToRun.size(); i != e; i++) {
51-
outs() << "-" << PassesToRun[i] << " ";
52-
}
50+
for (const std::string &Pass : PassesToRun)
51+
outs() << "-" << Pass << " ";
5352

5453
std::string Filename;
5554
if (runPasses(*Program, PassesToRun, Filename, false)) {

0 commit comments

Comments
 (0)