[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 04:04:26 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list