about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-07-30 10:45:48 -0700
committerJosh Stone <jistone@redhat.com>2022-07-30 10:45:48 -0700
commit4a1e4ea32af7d192d47f3ade90e984005638bf99 (patch)
tree74f8dcfb1e2a71999e130d12dd9fb5074d61b751 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent5dda74a48cd50de10539478c1e0b6699bfdab665 (diff)
downloadrust-4a1e4ea32af7d192d47f3ade90e984005638bf99.tar.gz
rust-4a1e4ea32af7d192d47f3ade90e984005638bf99.zip
Fix the size of niche enums with ZST alignment
For enums with an aligned ZST variant, like `[T; 0]`, the niche layout
was not computing a sufficient size to be consistent with alignment. Now
we pad that size up to the alignment, and also make sure to only use the
niche variant's ABI when the size and alignment still match.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions