[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 16 11:04:24 PDT 2024


================
@@ -5622,6 +5622,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
     getCUDARuntime().handleVarRegistration(D, *GV);
   }
 
+  if (LangOpts.HLSL)
+    getHLSLRuntime().handleGlobalVarDefinition(D, GV);
----------------
hekota wrote:

Done: https://github.com/microsoft/DirectXShaderCompiler/issues/6971

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


More information about the cfe-commits mailing list