[Mlir-commits] [mlir] [tblgen] Use `emitError` for inferResultTypes failures (PR #165488)

Mehdi Amini llvmlistbot at llvm.org
Wed Oct 29 23:03:53 PDT 2025


================
@@ -2681,7 +2681,7 @@ void OpEmitter::genSeparateArgParamBuilder() {
                       {1}.regions, inferredReturnTypes)))
           {1}.addTypes(inferredReturnTypes);
         else
-          ::mlir::detail::reportFatalInferReturnTypesError({1});
+          ::mlir::detail::emitInferReturnTypesError({1});
----------------
joker-eph wrote:

Actually no: `getChecked` returns a `null` Attribute (or Type) which you can check. This is not the case here, the MLIR builder API has no provision to fail building an operation, and your patch does not do this right now.



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


More information about the Mlir-commits mailing list