mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-21 20:37:59 +00:00
LLVM 15 added `Optional::has_value`, and LLVM `main` (16) has deprecated `hasValue`. However, its `explicit operator bool` does the same thing, and was added long ago, so we can use that across our full LLVM range of compatibility.