aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-01-09 09:18:07 +0100
committerGitHub <noreply@github.com>2024-01-09 09:18:07 +0100
commitc6bb89f308c6715edf3f35fb7c6257713ecfc614 (patch)
tree4eb8e7ce599cc248c275a708bbb06a7f4c954483 /llvm/lib/Object/ELFObjectFile.cpp
parentdaecc303bb719ed63566fcb343afec169826f82c (diff)
downloadllvm-c6bb89f308c6715edf3f35fb7c6257713ecfc614.zip
llvm-c6bb89f308c6715edf3f35fb7c6257713ecfc614.tar.gz
llvm-c6bb89f308c6715edf3f35fb7c6257713ecfc614.tar.bz2
[clang] Fix assertion failure when initializing union with FAM (#77298)
When initializing a union that constrain a struct with a flexible array member, and the initializer list is empty, we currently trigger an assertion failure. This happens because getFlexibleArrayInitChars() assumes that the initializer list is non-empty. Fixes https://github.com/llvm/llvm-project/issues/77085.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions