aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorAleksandr Platonov <platonov.aleksandr@huawei.com>2024-05-08 19:40:16 +0300
committerGitHub <noreply@github.com>2024-05-08 09:40:16 -0700
commitb59461ac63aa1770a617f96bab31010442bd2090 (patch)
tree8ee3362d446c95dc0c6b0965096c32d443ef00b2 /llvm/unittests/ADT/StringRefTest.cpp
parent3dcbcce287877322b2902ae271642416fdc8481c (diff)
downloadllvm-b59461ac63aa1770a617f96bab31010442bd2090.zip
llvm-b59461ac63aa1770a617f96bab31010442bd2090.tar.gz
llvm-b59461ac63aa1770a617f96bab31010442bd2090.tar.bz2
[ADT] Add back ability to compare StringSet (#91374)
StringSet comparison was broken after moving from llvm::Optional to std::optional because std::nullopt_t is not equality-comparable. Without this patch a try to compare objects of StringSet type leads to compilation error: ``` llvm-project/llvm/include/llvm/ADT/StringMap.h:294:33: error: no match for ‘operator==’ (operand types are ‘std::nullopt_t’ and ‘std::nullopt_t’) 294 | if (!(KeyValue.getValue() == FindInRHS->getValue())) ```
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions