diff options
| author | Bill Wendling <morbo@google.com> | 2022-10-20 16:08:01 -0700 |
|---|---|---|
| committer | Bill Wendling <morbo@google.com> | 2022-10-20 16:08:11 -0700 |
| commit | 283e0a81ef35deec46aa231cb8b9d826060f532a (patch) | |
| tree | 162435250e951de539df715214d4c7c61dab773a /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 464926ef4484e4cb2d410fd2e959a296d7b8d58e (diff) | |
[clang] Correct sanitizer behavior in union FAMs
Clang doesn't have the same behavior as GCC does with union flexible
array members. (Technically, union FAMs are probably not acceptable in
C99 and are an extension of GCC and Clang.)
Both Clang and GCC treat *all* arrays at the end of a structure as FAMs.
GCC does the same with unions. Clang does it for some arrays in unions
(incomplete, '0', and '1'), but not for all. Instead of having this
half-supported feature, sync Clang's behavior with GCC's.
Reviewed By: kees
Differential Revision: https://reviews.llvm.org/D135727
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
