[llvm] b6f4ec7 - llvm-reduce: Add scope braces (#135025)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 09:10:17 PDT 2025
Author: Matt Arsenault
Date: 2025-04-09T18:10:13+02:00
New Revision: b6f4ec72f90dc31b0d8665ed59ce34844858dd5a
URL: https://github.com/llvm/llvm-project/commit/b6f4ec72f90dc31b0d8665ed59ce34844858dd5a
DIFF: https://github.com/llvm/llvm-project/commit/b6f4ec72f90dc31b0d8665ed59ce34844858dd5a.diff
LOG: llvm-reduce: Add scope braces (#135025)
Added:
Modified:
llvm/tools/llvm-reduce/deltas/Delta.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp
index d4106b0243aea..6bf1b99346b13 100644
--- a/llvm/tools/llvm-reduce/deltas/Delta.cpp
+++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp
@@ -214,14 +214,16 @@ void llvm::runDeltaPass(TestRunner &Test, const DeltaPass &Pass) {
}
#ifndef NDEBUG
- // Make sure that the number of chunks does not change as we reduce.
- std::vector<Chunk> NoChunks = {{0, INT_MAX}};
- Oracle NoChunksCounter(NoChunks);
- std::unique_ptr<ReducerWorkItem> Clone =
- Test.getProgram().clone(Test.getTargetMachine());
- Pass.Func(NoChunksCounter, *Clone);
- assert(Targets == NoChunksCounter.count() &&
- "number of chunks changes when reducing");
+ {
+ // Make sure that the number of chunks does not change as we reduce.
+ std::vector<Chunk> NoChunks = {{0, INT_MAX}};
+ Oracle NoChunksCounter(NoChunks);
+ std::unique_ptr<ReducerWorkItem> Clone =
+ Test.getProgram().clone(Test.getTargetMachine());
+ Pass.Func(NoChunksCounter, *Clone);
+ assert(Targets == NoChunksCounter.count() &&
+ "number of chunks changes when reducing");
+ }
#endif
}
if (!Targets) {
More information about the llvm-commits
mailing list