[Lldb-commits] [PATCH] D138539: Use std::nullopt_t instead of NoneType (NFC)

Balázs Benics via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 2 04:25:48 PST 2023


steakhal added a comment.

Oh, I forgot to mention why this change breaks the equality operator of `llvm::StringSet`. It's because the `StringMap::operator==` will try to compare the `value` as well, which is of type `std::nullopt_t` and that has no equality comparison operator.
Previously, the `enum class NoneType` has a default one.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138539/new/

https://reviews.llvm.org/D138539



More information about the lldb-commits mailing list