summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <morbo@google.com>2022-10-20 16:08:01 -0700
committerBill Wendling <morbo@google.com>2022-10-20 16:08:11 -0700
commit283e0a81ef35deec46aa231cb8b9d826060f532a (patch)
tree162435250e951de539df715214d4c7c61dab773a /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent464926ef4484e4cb2d410fd2e959a296d7b8d58e (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