[clang] [llvm] [mlir] [ADT] Give DenseMapPair its own members instead of a std::pair base. NFC (PR #221853)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 20:03:32 PDT 2026
================
@@ -83,7 +83,7 @@ void PDLPatternModule::mergeIn(PDLPatternModule &&other) {
for (auto &it : other.configs)
configs.emplace_back(std::move(it));
for (auto &it : other.configMap)
- configMap.insert(it);
+ configMap.try_emplace(it.first, it.second);
----------------
MaskRay wrote:
thx. adopted!
https://github.com/llvm/llvm-project/pull/221853
More information about the cfe-commits
mailing list