1
Fork 0
rust/compiler/rustc_codegen_llvm/src
bors 31d74fb24b Auto merge of #109220 - nikic:poison, r=cuviper
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.

r? `@cuviper`
2023-03-24 15:39:40 +00:00
..
back Use -m option instead of looking for a cross-compiling version of dlltool 2023-03-22 14:30:28 -07:00
coverageinfo Use IntoIterator for mk_fn_sig. 2023-02-17 22:24:34 +11:00
debuginfo rustc: Remove unused Session argument from some attribute functions 2023-03-22 13:55:55 +04:00
llvm Use poison instead of undef 2023-03-16 15:07:04 +01:00
abi.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
allocator.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
asm.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
attributes.rs Add kernel-address sanitizer support for freestanding targets 2023-02-14 20:54:25 -05:00
base.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
builder.rs Use poison instead of undef 2023-03-16 15:07:04 +01:00
callee.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
common.rs Use poison instead of undef 2023-03-16 15:07:04 +01:00
consts.rs fix some lines, and do a consistency fix 2023-02-16 18:58:08 +02:00
context.rs Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
declare.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
intrinsic.rs Add CastKind::Transmute to MIR 2023-03-22 15:15:41 -07:00
lib.rs Reduce output spam 2023-03-21 18:18:25 +01:00
llvm_util.rs More general captures 2023-03-22 15:39:24 +01:00
mono_item.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
type_.rs Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3 2022-12-10 09:24:43 +01:00
type_of.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
va_arg.rs Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00