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

Mehdi Amini llvmlistbot at llvm.org
Wed Oct 29 21:19:50 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:

How is the caller in this context supposed to know that there was an error?
You emit a diagnostic but don't propagate any error state do you?

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


More information about the Mlir-commits mailing list