diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2023-05-22 11:38:19 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2023-05-22 11:38:38 -0700 |
commit | 57c5c1ab2a188b7962c9de5ac0f95e3c7441940a (patch) | |
tree | 4326f154cc0c5a2463c76c5229f858c6b0d957d5 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | d39a7844028bcdd28f72b0e69becc9c49b8fd283 (diff) | |
download | llvm-57c5c1ab2a188b7962c9de5ac0f95e3c7441940a.zip llvm-57c5c1ab2a188b7962c9de5ac0f95e3c7441940a.tar.gz llvm-57c5c1ab2a188b7962c9de5ac0f95e3c7441940a.tar.bz2 |
[clang][ExprConstant] fix __builtin_object_size for flexible array members
As reported by @kees, GCC treats __builtin_object_size of structures
containing flexible array members (aka arrays with incomplete type) not
just as the sizeof the underlying type, but additionally the size of the
members in a designated initializer list.
Fixes: https://github.com/llvm/llvm-project/issues/62789
Reviewed By: erichkeane
Differential Revision: https://reviews.llvm.org/D150892
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions