The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Apple’s stable releases of Clang as well as support the Swift project.
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[];
};
};
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 (cherry picked from commit c32712d1763d74329b42c1cd68a24d4c0075b596)