Enabling the verifiers is not very helpful if their output is
suppressed beyond the fatal error.
Differential Revision: https://reviews.llvm.org/D128743
if (DebugLogging)
dbgs() << "Verifying function " << F->getName() << "\n";
- if (verifyFunction(*F))
+ if (verifyFunction(*F, &errs()))
report_fatal_error("Broken function found, compilation aborted!");
} else if (any_isa<const Module *>(IR) ||
any_isa<const LazyCallGraph::SCC *>(IR)) {
if (DebugLogging)
dbgs() << "Verifying module " << M->getName() << "\n";
- if (verifyModule(*M))
+ if (verifyModule(*M, &errs()))
report_fatal_error("Broken module found, compilation aborted!");
}
});