[llvm] [IR] Check parameters of target extension types on construction (PR #107268)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 03:07:21 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 =
----------------
4vtomat wrote:
Can we just use `targetexttype::get` here and just make `cantFail` check the error instead of checking here?
https://github.com/llvm/llvm-project/pull/107268
More information about the llvm-commits
mailing list