[clang] [Clang][HIP][CUDA] Validate that variable type fits in address spaces (PR #178909)
Steffen Larsen via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 08:50:04 PST 2026
================
@@ -8135,6 +8164,22 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL,
case ParsedAttr::AT_GCCStruct:
handleGCCStructAttr(S, D, AL);
break;
+
+ case ParsedAttr::AT_OpenCLConstantAddressSpace:
----------------
steffenlarsen wrote:
I realized there was a better place to check these, so I've moved them there. The general address space gets handled the same as these now, but it seems like it's limited how it can be used to trigger the case. A single test case has been added for it.
https://github.com/llvm/llvm-project/pull/178909
More information about the cfe-commits
mailing list