llvm.org GIT mirror llvm / 98153ec
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 Owen Anderson 12 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
202202 else
203203 for (size_t i = 0; i < other.NumBuckets; ++i) {
204204 new (Buckets[i].first) KeyT(other.Buckets[i].first);
205 new (Buckets[i].second) ValueT(other.Buckets[i].second);
205 if (Buckets[i].first != getEmptyKey() &&
206 Buckets[i].first != getTombstoneKey())
207 new (Buckets[i].second) ValueT(other.Buckets[i].second);
206208 }
207209 NumBuckets = other.NumBuckets;
208210 }