================ @@ -2266,6 +2266,89 @@ static bool BuiltinCountZeroBitsGeneric(Sema &S, CallExpr *TheCall) { return false; } +static bool CheckMaskedBuiltinArgs(Sema &S, Expr *MaskArg, Expr *PtrArg, + unsigned Pos) { + QualType MaskTy = MaskArg->getType(); + if (!MaskTy->isExtVectorBoolType()) { + S.Diag(MaskArg->getBeginLoc(), diag::err_builtin_invalid_arg_type) ---------------- erichkeane wrote:
Nit: ```suggestion return S.Diag(MaskArg->getBeginLoc(), diag::err_builtin_invalid_arg_type) ``` Then you can skip the curleys. Its a common pattern in the FE. https://github.com/llvm/llvm-project/pull/154464 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits