[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 23 11:38:00 PDT 2025
================
@@ -50,6 +50,16 @@ struct Unnamed {
int : 8;
};
+struct Empty {
+};
+
+struct UnnamedOnly {
+ int : 8;
+};
+
----------------
llvm-beanz wrote:
A few other potential cases to consider:
```
struct EmptyDerived : Empty {};
struct UnnamedDerived : UnnamedOnly {};
```
https://github.com/llvm/llvm-project/pull/160355
More information about the cfe-commits
mailing list