File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
llvm/tools/llvm-reduce/deltas Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments