[clang] [HLSL] Change default linkage of HLSL functions and groupshared variables (v2) (PR #95331)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 1 15:20:39 PDT 2024


================
@@ -158,7 +158,8 @@ def FunctionTmpl
 
 def HLSLEntry
     : SubsetSubject<Function,
-                    [{S->isExternallyVisible() && !isa<CXXMethodDecl>(S)}],
+                   [{S->getDeclContext()->getRedeclContext()->isFileContext() &&
+                    S->getStorageClass() != SC_Static}],
----------------
hekota wrote:

See above.

https://github.com/llvm/llvm-project/pull/95331


More information about the cfe-commits mailing list