rust/compiler/rustc_codegen_ssa/src/traits
Nikita Popov 30331828cb Use poison instead of undef
In cases where it is legal, we should prefer poison values over
undef values.

This replaces undef with poison for aggregate construction and
for uninhabited types. There are more places where we can likely
use poison, but I wanted to stay conservative to start with.

In particular the aggregate case is important for newer LLVM
versions, which are not able to handle an undef base value during
early optimization due to poison-propagation concerns.
2023-03-16 15:07:04 +01:00
..
abi.rs Merge apply_attrs_callsite into call and invoke 2022-10-01 17:01:31 +00:00
asm.rs Add codegen for global_asm! sym operands 2022-04-15 14:36:30 +01:00
backend.rs various: translation resources from cg backend 2023-02-22 09:15:54 +00:00
builder.rs Destruct landing_pad return value before passing it to cg_ssa 2022-12-03 18:27:18 +00:00
consts.rs Use poison instead of undef 2023-03-16 15:07:04 +01:00
coverageinfo.rs Stabilize -Z instrument-coverage as -C instrument-coverage 2022-01-01 15:57:35 -08:00
debuginfo.rs Introduce composite debuginfo. 2022-11-15 17:53:50 +00:00
declare.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
intrinsic.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
misc.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
mod.rs Add fine-grained LLVM CFI support to the Rust compiler 2022-07-23 10:51:34 -07:00
statics.rs Only compile #[used] as llvm.compiler.used for ELF targets 2022-05-11 01:29:56 -07:00
type_.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
write.rs session: diagnostic migration lint on more fns 2023-01-30 17:11:35 +00:00