[clang] [HLSL] Constant buffer layout struct update (PR #124840)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 01:31:24 PST 2025
================
@@ -14183,6 +14183,13 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
if (getLangOpts().OpenCL &&
Var->getType().getAddressSpace() == LangAS::opencl_local)
return;
+
+ // In HLSL, objects in the hlsl_constat address space are initialized
+ // externaly, so don't synthesize an implicit initializer.
----------------
bogner wrote:
Couple of typos
```suggestion
// In HLSL, objects in the hlsl_constant address space are initialized
// externally, so don't synthesize an implicit initializer.
```
https://github.com/llvm/llvm-project/pull/124840
More information about the cfe-commits
mailing list