mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Don't bother to initialize values corresponding to empty or tombstone
keys. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a890e2fb5
commit
98153ecbc1
@ -203,7 +203,9 @@ private:
|
||||
else
|
||||
for (size_t i = 0; i < other.NumBuckets; ++i) {
|
||||
new (Buckets[i].first) KeyT(other.Buckets[i].first);
|
||||
new (Buckets[i].second) ValueT(other.Buckets[i].second);
|
||||
if (Buckets[i].first != getEmptyKey() &&
|
||||
Buckets[i].first != getTombstoneKey())
|
||||
new (Buckets[i].second) ValueT(other.Buckets[i].second);
|
||||
}
|
||||
NumBuckets = other.NumBuckets;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user