[Mlir-commits] [mlir] [mlir] implement `-verify-diagnostics=only-expected` (PR #135131)
Jacques Pienaar
llvmlistbot at llvm.org
Thu Apr 10 11:00:56 PDT 2025
================
@@ -149,17 +160,17 @@ LogicalResult mlir::mlirTranslateMain(int argc, char **argv,
MLIRContext context;
context.allowUnregisteredDialects(allowUnregisteredDialects);
- context.printOpOnDiagnostic(!verifyDiagnostics);
+ context.printOpOnDiagnostic(!bool(verifyDiagnostics.getNumOccurrences()));
----------------
jpienaar wrote:
How about just checking if 0?
https://github.com/llvm/llvm-project/pull/135131
More information about the Mlir-commits
mailing list