@@ -570,7 +570,7 @@ class DenseMapBase : public DebugEpochBase {
570
570
template <typename KeyArg, typename ... ValueArgs>
571
571
BucketT *InsertIntoBucket (BucketT *TheBucket, KeyArg &&Key,
572
572
ValueArgs &&...Values) {
573
- TheBucket = InsertIntoBucketImpl (Key, Key, TheBucket);
573
+ TheBucket = InsertIntoBucketImpl (Key, TheBucket);
574
574
575
575
TheBucket->getFirst () = std::forward<KeyArg>(Key);
576
576
::new (&TheBucket->getSecond ()) ValueT (std::forward<ValueArgs>(Values)...);
@@ -580,16 +580,15 @@ class DenseMapBase : public DebugEpochBase {
580
580
template <typename LookupKeyT>
581
581
BucketT *InsertIntoBucketWithLookup (BucketT *TheBucket, KeyT &&Key,
582
582
ValueT &&Value, LookupKeyT &Lookup) {
583
- TheBucket = InsertIntoBucketImpl (Key, Lookup, TheBucket);
583
+ TheBucket = InsertIntoBucketImpl (Lookup, TheBucket);
584
584
585
585
TheBucket->getFirst () = std::move (Key);
586
586
::new (&TheBucket->getSecond ()) ValueT (std::move (Value));
587
587
return TheBucket;
588
588
}
589
589
590
590
template <typename LookupKeyT>
591
- BucketT *InsertIntoBucketImpl (const KeyT &Key, const LookupKeyT &Lookup,
592
- BucketT *TheBucket) {
591
+ BucketT *InsertIntoBucketImpl (const LookupKeyT &Lookup, BucketT *TheBucket) {
593
592
incrementEpoch ();
594
593
595
594
// If the load of the hash table is more than 3/4, or if fewer than 1/8 of
0 commit comments