Skip to content

Commit

Permalink
Auto merge of #109220 - nikic:poison, r=cuviper
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Mar 24, 2023
2 parents 403ec2b + 8d82d00 commit a41db03
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a41db03

Please sign in to comment.