[llvm] e25abd0 - [bugpoint] Use a range-based for loop (NFC) (#140743)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 14:34:47 PDT 2025
Author: Kazu Hirata
Date: 2025-05-20T14:34:44-07:00
New Revision: e25abd0d549d4313ec39bb9fbbc974ec3dbc23a0
URL: https://github.com/llvm/llvm-project/commit/e25abd0d549d4313ec39bb9fbbc974ec3dbc23a0
DIFF: https://github.com/llvm/llvm-project/commit/e25abd0d549d4313ec39bb9fbbc974ec3dbc23a0.diff
LOG: [bugpoint] Use a range-based for loop (NFC) (#140743)
Added:
Modified:
llvm/tools/bugpoint/FindBugs.cpp
Removed:
################################################################################
diff --git a/llvm/tools/bugpoint/FindBugs.cpp b/llvm/tools/bugpoint/FindBugs.cpp
index 31945fadd95d8..67084b850fdda 100644
--- a/llvm/tools/bugpoint/FindBugs.cpp
+++ b/llvm/tools/bugpoint/FindBugs.cpp
@@ -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)) {
More information about the llvm-commits
mailing list