diff options
| author | Kazu Hirata <kazu@google.com> | 2025-10-21 07:22:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 07:22:15 -0700 |
| commit | 58abcf6bc68942f25f89f68f2770f9e55f24eab0 (patch) | |
| tree | fd0251ab91986faad56a3c92dae3a27f9026099e /clang/lib/AST/ByteCode/Compiler.cpp | |
| parent | 683e2bf059a6e5e0bb9dc2628218b53dc2d1b490 (diff) | |
| download | llvm-58abcf6bc68942f25f89f68f2770f9e55f24eab0.zip llvm-58abcf6bc68942f25f89f68f2770f9e55f24eab0.tar.gz llvm-58abcf6bc68942f25f89f68f2770f9e55f24eab0.tar.bz2 | |
[ADT] Modernize SparseMultiSet to use llvm::identity_cxx20 (NFC) (#164361)
The legacy llvm::identity is not quite the same as std::identity from
C++20. llvm::identity is a template struct with an ::argument_type
member. In contrast, llvm::identity_cxx20 (and std::identity) is a
non-template struct with a templated call operator and no
::argument_type.
This patch modernizes llvm::SparseMultiSet by updating its default
key-extraction functor to llvm::identity_cxx20. A new template
parameter KeyT takes over the role of ::argument_type.
Existing uses of SparseMultiSet are updated for the new template
signature.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions
