[llvm] [ADT] Make null PointerUnion with different active members compare equal (PR #121847)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 07:08:48 PST 2025


s-barannikov wrote:

> Do we have an example of similar semantics in some other LLVM type or an external library?

`std::optional` with polymorphic type comes to mind.


https://github.com/llvm/llvm-project/pull/121847


More information about the llvm-commits mailing list