diff options
| author | Josh Stone <jistone@redhat.com> | 2022-07-30 10:45:48 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-07-30 10:45:48 -0700 |
| commit | 4a1e4ea32af7d192d47f3ade90e984005638bf99 (patch) | |
| tree | 74f8dcfb1e2a71999e130d12dd9fb5074d61b751 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 5dda74a48cd50de10539478c1e0b6699bfdab665 (diff) | |
| download | rust-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
