[llvm] [mlir] [TableGen] Do not exit in template argument check (PR #121636)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 08:14:18 PST 2025


Markus =?utf-8?q?Böck?= <markus.boeck02 at gmail.com>,
Markus =?utf-8?q?Böck?= <markus.boeck02 at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/121636 at github.com>


================
@@ -4439,16 +4440,16 @@ bool TGParser::CheckTemplateArgValues(
                "result of template arg value cast has wrong type");
         Value = Value->cloneWithValue(CastValue);
       } else {
-        PrintFatalError(Loc, "Value specified for template argument '" +
-                                 Arg->getNameInitAsString() + "' is of type " +
-                                 ArgValue->getType()->getAsString() +
-                                 "; expected type " + ArgType->getAsString() +
-                                 ": " + ArgValue->getAsString());
+        HasError |= Error(
----------------
jurahul wrote:

Thanks for adding this. I also created an issue: https://github.com/llvm/llvm-project/issues/121792 to look into tracking locations for Inits. 


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


More information about the llvm-commits mailing list