diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-06-01 11:09:42 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-01 11:09:42 +0530 |
| commit | 03d4299447c8e563d2d07dd2a8c618aa81f6700c (patch) | |
| tree | a45b5caa4618f9bd30b4b89e4ab43b85ba11a6f4 /compiler/rustc_errors/src/snippet.rs | |
| parent | 0baa30129b5c64cdc61a2660175c8266fa78959f (diff) | |
| parent | bf36193ef6f8bc31cc2ae3ffe8ec9bfe0d3d29a8 (diff) | |
| download | rust-03d4299447c8e563d2d07dd2a8c618aa81f6700c.tar.gz rust-03d4299447c8e563d2d07dd2a8c618aa81f6700c.zip | |
Rollup merge of #111318 - scottmcm:operand-value-poison, r=compiler-errors
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`
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
