diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-06-22 21:30:43 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-06-22 21:30:43 +0000 |
commit | 1fa07ebd929383f769994818c3f8c55919bf0a0e (patch) | |
tree | 1f68cf27e569af8a9ce77a0faaac3edfa641e60d /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 780c374b2056afb5665377690183cdd50bf97f09 (diff) | |
download | llvm-1fa07ebd929383f769994818c3f8c55919bf0a0e.zip llvm-1fa07ebd929383f769994818c3f8c55919bf0a0e.tar.gz llvm-1fa07ebd929383f769994818c3f8c55919bf0a0e.tar.bz2 |
Fix TBAA representation for zero-sized fields and unnamed bit-fields.
Unnamed bit-fields should not be represented in the TBAA metadata
because they do not represent storage fields (they only affect layout).
Zero-sized fields should not be represented in the TBAA metadata
because by definition they have no associated storage (so we will never
emit a load or store through them), and they might not appear in
declaration order within the struct layout.
Fixes a verifier failure when emitting a TBAA-enabled load through a
class type containing a zero-sized field.
llvm-svn: 364140
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions