================ @@ -2625,8 +2622,10 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID, case Builtin::BI__builtin_alloca_uninitialized: Diag(TheCall->getBeginLoc(), diag::warn_alloca) << TheCall->getDirectCallee(); - if (OpenCLBuiltinAllocaAddrSpace(*this, TheCall)) - return ExprError(); + if (getLangOpts().OpenCL) { + if (builtinAllocaAddrSpace(*this, TheCall)) + return ExprError(); ---------------- arsenm wrote:
This cannot fail https://github.com/llvm/llvm-project/pull/95750 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits