This prints out in case of any pass failure. Not just a crash.
PiperOrigin-RevId:
283616719
outputFile->keep();
return reproducerModule->emitError()
- << "A crash has been detected while processing the MLIR module, a "
+ << "A failure has been detected while processing the MLIR module, a "
"reproducer has been generated in '"
<< crashReproducerFileName << "'";
}
// RUN: mlir-opt %s -pass-pipeline='func(test-function-pass, test-pass-crash)' -pass-pipeline-crash-reproducer=%t -verify-diagnostics
// RUN: cat %t | FileCheck -check-prefix=REPRO %s
-// expected-error@+1 {{A crash has been detected while processing the MLIR module}}
+// expected-error@+1 {{A failure has been detected while processing the MLIR module}}
module {
func @foo() {
return