Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR] Simplify comparisons with std::optional (NFC) (llvm#105624)
For variable X of type std::optional, X && X.value_or(Y) == Z is equivalent to X == Z when Y != Z.
- Loading branch information