[bugpoint] Use a range-based for loop (NFC) (#140743)

This commit is contained in:
Kazu Hirata
2025-05-20 14:34:44 -07:00
committed by GitHub
parent cbac2a9241
commit e25abd0d54

View File

@@ -47,9 +47,8 @@ BugDriver::runManyPasses(const std::vector<std::string> &AllPasses) {
// Step 2: Run optimizer passes on the program and check for success.
//
outs() << "Running selected passes on program to test for crash: ";
for (int i = 0, e = PassesToRun.size(); i != e; i++) {
outs() << "-" << PassesToRun[i] << " ";
}
for (const std::string &Pass : PassesToRun)
outs() << "-" << Pass << " ";
std::string Filename;
if (runPasses(*Program, PassesToRun, Filename, false)) {