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

Damyan Pepper via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 14:42:20 PDT 2024


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

Just checking you know that this has to work for non-globals as well? https://godbolt.org/z/MWzdTEb6q

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


More information about the cfe-commits mailing list