[llvm] [IR] Check parameters of target extension types on construction (PR #107268)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 03:50:30 PDT 2024
================
@@ -3530,7 +3530,12 @@ bool LLParser::parseTargetExtType(Type *&Result) {
if (parseToken(lltok::rparen, "expected ')' in target extension type"))
return true;
- Result = TargetExtType::get(Context, TypeName, TypeParams, IntParams);
+ auto TTy =
----------------
jayfoad wrote:
I'm not sure what you're suggesting. The intention of this patch is that most callers of `TargetExtType::get` are unaffected. Only callers that want to opt in to error detection have to change to use the new `getOrError` instead.
https://github.com/llvm/llvm-project/pull/107268
More information about the llvm-commits
mailing list