================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits