about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-03-16 14:56:02 +0100
committerNikita Popov <npopov@redhat.com>2023-03-16 15:07:04 +0100
commit0c115bf8b8a6973711cb4e8b3c0f62e2551c20a5 (patch)
tree7decea1c7e9fa5b9e0589b83a7e305dea4796dd9 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parentee38de5155b1526fa0b0b3cf118376259ac9d5b7 (diff)
downloadrust-0c115bf8b8a6973711cb4e8b3c0f62e2551c20a5.tar.gz
rust-0c115bf8b8a6973711cb4e8b3c0f62e2551c20a5.zip
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions