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`
This commit is contained in:
bors 2023-03-24 15:39:40 +00:00
commit 3d472f586d

Diff content is not available