[clang] [llvm] [LLVM] Add validation to check the number of intrinsic args (PR #196563)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri May 8 14:07:52 PDT 2026
================
@@ -1050,44 +1059,40 @@ matchIntrinsicType(Type *Ty, ArrayRef<Intrinsic::IITDescriptor> &Infos,
return true;
return ThisArgVecTy != VectorType::getInteger(ReferenceType);
}
+ case IITDescriptor::VarArg:
+ // VarArg token should be consumed by `getIntrinsicInfoTableEntries`, so we
+ // should never see it here.
----------------
andykaylor wrote:
llvm_unreachable?
https://github.com/llvm/llvm-project/pull/196563
More information about the cfe-commits
mailing list