================
@@ -2210,6 +2222,9 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, 
unsigned BuiltinID,
   case Builtin::BI__builtin_alloca_uninitialized:
     Diag(TheCall->getBeginLoc(), diag::warn_alloca)
         << TheCall->getDirectCallee();
+    if (getLangOpts().OpenCL) {
+      builtinAllocaAddrSpace(*this, TheCall);
+    }
----------------
arichardson wrote:

A bit late tot this review, but right now we have `getASTAllocaAddressSpace()` 
in CodeGen/, could this be used moved so we can make use of it in Sema instead?

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

Reply via email to