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

Pre-SM6.6 this will emit an error (https://godbolt.org/z/e8nGf8cKf):
```
<source>:4:3: error: local resource not guaranteed to map to unique global 
resource.
```

Looks like a bug in DXC to me.

https://github.com/llvm/llvm-project/pull/111207
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to