Make diagnostic a bit clearer.

This prints out in case of any pass failure. Not just a crash.

PiperOrigin-RevId: 283616719
This commit is contained in:
Sean Silva 2019-12-03 14:00:36 -08:00 committed by A. Unique TensorFlower
parent 2c13fd9f17
commit 82f9f9d112
2 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ static LogicalResult runWithCrashRecovery(OpPassManager &pm,
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 << "'";
}

View File

@ -1,7 +1,7 @@
// 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