1
Fork 0
rust/compiler/rustc_codegen_ssa/src
bors 5899a80ae6 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.
2023-09-26 19:04:32 +00:00
..
back Pass name of object file to LLVM so it can correctly emit S_OBJNAME 2023-09-25 19:31:58 +02:00
debuginfo Remove GeneratorWitness and rename GeneratorWitnessMIR. 2023-09-23 13:47:30 +00:00
mir Auto merge of #116102 - cjgillot:indirect-scalar, r=oli-obk 2023-09-26 19:04:32 +00:00
traits Merge ExternProviders into the general Providers struct 2023-09-22 20:15:34 +00:00
base.rs Rebase to master 2023-09-22 17:23:33 +05:30
codegen_attrs.rs Correct typo 2023-09-08 12:46:10 +01:00
common.rs move ConstValue into mir 2023-09-19 11:11:02 +02:00
errors.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
glue.rs Use size_of_val instead of manual calculation 2023-03-17 19:55:49 -07:00
lib.rs Merge ExternProviders into the general Providers struct 2023-09-22 20:15:34 +00:00
meth.rs cg_ssa: remove pointee types and pointercast/bitcast-of-ptr 2023-07-29 13:18:20 -04:00
mono_item.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
target_features.rs add details for csky-unknown-linux-gnuabiv2 and add docs 2023-08-14 23:02:37 +08:00