[clang] [Clang] Handle structs with inner structs and no fields (PR #89126)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 17 18:25:12 PDT 2024


================
@@ -844,7 +847,18 @@ const FieldDecl *CodeGenFunction::FindFlexibleArrayMemberField(
       if (const FieldDecl *Field =
----------------
efriedma-quic wrote:

Maybe instead of looking for RecordDecls, this code should be looking for fields where the type of the field is an anonymous struct/union.

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


More information about the cfe-commits mailing list