[llvm] [ADT] Make DenseMapBase::swap the public entry point (PR #167650)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 12 05:55:38 PST 2025
================
@@ -360,6 +360,12 @@ class DenseMapBase : public DebugEpochBase {
return getBuckets();
}
+ void swap(DerivedT &RHS) {
+ this->incrementEpoch();
+ RHS.incrementEpoch();
----------------
kuhar wrote:
Is the epoch number something we could test for?
https://github.com/llvm/llvm-project/pull/167650
More information about the llvm-commits
mailing list