diff options
| author | bors <bors@rust-lang.org> | 2023-09-26 19:04:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-26 19:04:32 +0000 |
| commit | 5899a80ae60ec0959dcd4a7eca6eb02ce2866632 (patch) | |
| tree | dfecc4852f43a1cba570e833a989bb6bc5369159 /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | 6710e3312d54f03f6462481199b9e72367a2568b (diff) | |
| parent | ac0683b78310bba9c3c601cfd81bbda4a10be322 (diff) | |
| download | rust-5899a80ae60ec0959dcd4a7eca6eb02ce2866632.tar.gz rust-5899a80ae60ec0959dcd4a7eca6eb02ce2866632.zip | |
Auto merge of #116102 - cjgillot:indirect-scalar, r=oli-obk
Correct codegen of `ConstValue::Indirect` scalar and scalar pair This concerns 3 tricky cases with `ConstValue::Indirect`: - if we want a non-pointer scalar; - if we have non-zero offset; - if offset points to uninit memory => generate `poison` instead of an ICE. This case could happen in unreachable code, trying to extract a field from the wrong variant. Those cases are not currently emitted by the compiler, but are exercised by https://github.com/rust-lang/rust/pull/116012.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
