commit | 2708b11b58673bcfae6f0cc1f6b73f12587479f2 | [log] [tgz] |
---|---|---|
author | Bill Wendling <5993918+bwendling@users.noreply.github.com> | Fri Apr 19 12:48:33 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Apr 19 12:52:35 2024 -0700 |
tree | 352f7a1b67e9c0ea3f2d697f1fa15192cf133a59 | |
parent | 22e7ec530a21f2af493265d0609022f82c1931b1 [diff] |
[Clang] Handle structs with inner structs and no fields (#89126) A struct that declares an inner struct, but no fields, won't have a field count. So getting the offset of the inner struct fails. This happens in both C and C++: struct foo { struct bar { int Quantizermatrix[]; }; }; Here 'struct foo' has no fields. Closes: https://github.com/llvm/llvm-project/issues/88931 GitOrigin-RevId: c32712d1763d74329b42c1cd68a24d4c0075b596