Skip to content

Commit b6f4ec7

Browse files
authored
llvm-reduce: Add scope braces (#135025)
1 parent c4667c5 commit b6f4ec7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

llvm/tools/llvm-reduce/deltas/Delta.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,16 @@ void llvm::runDeltaPass(TestRunner &Test, const DeltaPass &Pass) {
214214
}
215215

216216
#ifndef NDEBUG
217-
// Make sure that the number of chunks does not change as we reduce.
218-
std::vector<Chunk> NoChunks = {{0, INT_MAX}};
219-
Oracle NoChunksCounter(NoChunks);
220-
std::unique_ptr<ReducerWorkItem> Clone =
221-
Test.getProgram().clone(Test.getTargetMachine());
222-
Pass.Func(NoChunksCounter, *Clone);
223-
assert(Targets == NoChunksCounter.count() &&
224-
"number of chunks changes when reducing");
217+
{
218+
// Make sure that the number of chunks does not change as we reduce.
219+
std::vector<Chunk> NoChunks = {{0, INT_MAX}};
220+
Oracle NoChunksCounter(NoChunks);
221+
std::unique_ptr<ReducerWorkItem> Clone =
222+
Test.getProgram().clone(Test.getTargetMachine());
223+
Pass.Func(NoChunksCounter, *Clone);
224+
assert(Targets == NoChunksCounter.count() &&
225+
"number of chunks changes when reducing");
226+
}
225227
#endif
226228
}
227229
if (!Targets) {

0 commit comments

Comments
 (0)