summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-24 15:39:40 +0000
committerbors <bors@rust-lang.org>2023-03-24 15:39:40 +0000
commit31d74fb24bb16317e09f936fbf46590599b02940 (patch)
tree543f3d1d99001cb31fdd805917309fb528819243 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentf421586eed77de266a3f99ffa8a5687b7d2d893c (diff)
parent30331828cb9e694b59c9325dce7c1f25dac3e80e (diff)
downloadrust-31d74fb24bb16317e09f936fbf46590599b02940.tar.gz
rust-31d74fb24bb16317e09f936fbf46590599b02940.zip
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`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions