forked from OSchip/llvm-project
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:
parent
2c13fd9f17
commit
82f9f9d112
|
@ -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 << "'";
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue