[clang] [llvm] [HLSL][SPIR-V] Implement vk::push_constant (PR #166793)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:21:00 PST 2025


================
@@ -14552,6 +14552,9 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
     if (getLangOpts().HLSL &&
         Var->getType().getAddressSpace() == LangAS::hlsl_input)
       return;
+    if (getLangOpts().HLSL &&
+        Var->getType().getAddressSpace() == LangAS::hlsl_push_constant)
+      return;
----------------
s-perron wrote:

Could this get merged with the if-statement above and call the function I suggested above? Something like `IsExternallyInitializedHlslStorageClass`

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


More information about the cfe-commits mailing list