[all-commits] [llvm/llvm-project] c32712: [Clang] Handle structs with inner structs and no f...
Bill Wendling via All-commits
all-commits at lists.llvm.org
Fri Apr 19 12:48:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c32712d1763d74329b42c1cd68a24d4c0075b596
https://github.com/llvm/llvm-project/commit/c32712d1763d74329b42c1cd68a24d4c0075b596
Author: Bill Wendling <5993918+bwendling at users.noreply.github.com>
Date: 2024-04-19 (Fri, 19 Apr 2024)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
A clang/test/CodeGen/attr-counted-by-pr88931.c
A clang/test/CodeGen/attr-counted-by-pr88931.cpp
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list