[clang] [HLSL] Change default linkage of HLSL functions and groupshared variables (v2) (PR #95331)
Xiang Li via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 2 19:08:17 PDT 2024
================
@@ -664,11 +664,25 @@ LinkageComputer::getLVForNamespaceScopeDecl(const NamedDecl *D,
if (PrevVar->getStorageClass() == SC_Static)
return LinkageInfo::internal();
}
+
+ if (Context.getLangOpts().HLSL &&
+ Var->hasAttr<HLSLGroupSharedAddressSpaceAttr>())
+ return LinkageInfo::internal();
----------------
python3kgae wrote:
Do we have a test for this?
https://github.com/llvm/llvm-project/pull/95331
More information about the cfe-commits
mailing list