llvm.org GIT mirror llvm / 4938d34
Fix CopyFrom for non-POD data types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42208 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 12 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
209209 new (Buckets[i].first) KeyT(other.Buckets[i].first);
210210 if (Buckets[i].first != getEmptyKey() &&
211211 Buckets[i].first != getTombstoneKey())
212 new (Buckets[i].second) ValueT(other.Buckets[i].second);
212 new (&Buckets[i].second) ValueT(other.Buckets[i].second);
213213 }
214214 NumBuckets = other.NumBuckets;
215215 }