[Mlir-commits] [mlir] [mlir][mlir-tblgen] Emit correct error message if method is pruned (PR #160334)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 24 05:05:26 PDT 2025
================
@@ -552,6 +567,10 @@ void DefGen::emitCheckedCustomBuilder(const AttrOrTypeBuilder &builder) {
getCustomBuilderParams(
{{"::llvm::function_ref<::mlir::InFlightDiagnostic()>", "emitError"}},
builder));
+
+ // If method is pruned, report error and terminate.
+ ERROR_IF_PRUNED(m, "getChecked", def);
+
----------------
joker-eph wrote:
Sure. If we have diagnostics / error cases, we should try to add the relevant test cases to trigger them.
https://github.com/llvm/llvm-project/pull/160334
More information about the Mlir-commits
mailing list