mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 09:45:30 +00:00
Add a distinct `OperandValue::ZeroSized` variant for ZSTs These tend to have special handling in a bunch of places anyway, so the variant helps remember that. And I think it's easier to grok than `Aggregate`s sometimes being `Immediates` (after all, I previously got that wrong and caused #109992). As a minor bonus, it means we don't need to generate poison LLVM values for ZSTs to pass around in `OperandValue::Immediate`s. Inspired by https://github.com/rust-lang/rust/pull/110021#discussion_r1160486991, so r? `@compiler-errors`