[clang] [Clang][FIX] Fix type qualifiers on vector builtins (PR #160185)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 25 13:11:34 PDT 2025
================
@@ -2397,7 +2427,8 @@ static ExprResult BuiltinMaskedScatter(Sema &S, CallExpr *TheCall) {
Expr *ValArg = TheCall->getArg(2);
Expr *PtrArg = TheCall->getArg(3);
- if (CheckMaskedBuiltinArgs(S, MaskArg, PtrArg, 3))
+ if (CheckMaskedBuiltinArgs(S, MaskArg, PtrArg, 3, /*AllowConst=*/false,
+ /*AllowAS=*/false))
----------------
rjmccall wrote:
LLVM's masked scatter intrinsic looks like it supports arbitrary address spaces; are you just being conservative about AS qualification here?
https://github.com/llvm/llvm-project/pull/160185
More information about the cfe-commits
mailing list