diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-10 08:24:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-10 08:24:05 +0200 |
| commit | ec53c379ccb79257f4802a883b42789daec00c50 (patch) | |
| tree | 998d97785d1b9c97bc4e253d0fb1e46f55a1ee13 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 9a3f17b34d59329a931c10086d5e98b3dea26ee7 (diff) | |
| parent | 02eca34534c2f69cda539aade9fff230aae70af3 (diff) | |
| download | rust-ec53c379ccb79257f4802a883b42789daec00c50.tar.gz rust-ec53c379ccb79257f4802a883b42789daec00c50.zip | |
Rollup merge of #96872 - RalfJung:layout-sanity, r=eddyb
make sure ScalarPair enums have ScalarPair variants; add some layout sanity checks `@eddyb` suggested that it might be reasonable for `ScalarPair` enums to simply adjust the ABI of their variants accordingly, such that the layout invariant Miri expects actually holds. This PR implements that. I should note though that I don't know much about this layout computation code and what non-Miri consumers expect from it, so tread with caution! I also added a function to sanity-check that computed layouts are internally consistent. This helped a lot in figuring out the final shape of this PR, though I am also not 100% sure that these sanity checks are the right ones. Cc `@oli-obk` Fixes https://github.com/rust-lang/rust/issues/96221
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
