[Mlir-commits] [mlir] [MLIR] Print more user-friendly error message when generating local reproducer and threading is enabled (PR #144905)

Artemiy Bulavin llvmlistbot at llvm.org
Fri Jun 20 03:16:55 PDT 2025


================
@@ -0,0 +1,9 @@
+// Test that attempting to create a local crash reproducer without disabling threading
+// prints an error from the pass manager (as opposed to crashing with a stack trace).
+
+// We need to use `||` in the RUN command because lit will fail the test due to mlir-opt
+// returning non-zero status for this test case, however this is the intended behaviour.
+
+// RUN: mlir-opt --mlir-pass-pipeline-local-reproducer --mlir-pass-pipeline-crash-reproducer=%t %s 2>&1 || FileCheck --input-file %s %s
----------------
abulavin wrote:

Done, thanks

https://github.com/llvm/llvm-project/pull/144905


More information about the Mlir-commits mailing list