File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,8 @@ template<> struct DenseMapInfo<unsigned long> {
140
140
if constexpr (sizeof (Val) == 4 )
141
141
return DenseMapInfo<unsigned >::getHashValue (Val);
142
142
else
143
- return detail::combineHashValue (
144
- DenseMapInfo<unsigned >::getHashValue (Val),
145
- DenseMapInfo<unsigned >::getHashValue (Val >> 32 ));
143
+ return DenseMapInfo<unsigned >::getHashValue (Val) ^
144
+ DenseMapInfo<unsigned >::getHashValue (Val >> 32 );
146
145
}
147
146
148
147
static bool isEqual (const unsigned long & LHS, const unsigned long & RHS) {
@@ -156,9 +155,8 @@ template<> struct DenseMapInfo<unsigned long long> {
156
155
static inline unsigned long long getTombstoneKey () { return ~0ULL - 1ULL ; }
157
156
158
157
static unsigned getHashValue (const unsigned long long & Val) {
159
- return detail::combineHashValue (
160
- DenseMapInfo<unsigned >::getHashValue (Val),
161
- DenseMapInfo<unsigned >::getHashValue (Val >> 32 ));
158
+ return DenseMapInfo<unsigned >::getHashValue (Val) ^
159
+ DenseMapInfo<unsigned >::getHashValue (Val >> 32 );
162
160
}
163
161
164
162
static bool isEqual (const unsigned long long & LHS,
You can’t perform that action at this time.
0 commit comments