llvm.org GIT mirror llvm / 2b7470e
Fix use of placement new to actually use an address. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52423 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
217217 memcpy(Buckets, other.Buckets, other.NumBuckets * sizeof(BucketT));
218218 else
219219 for (size_t i = 0; i < other.NumBuckets; ++i) {
220 new (Buckets[i].first) KeyT(other.Buckets[i].first);
220 new (&Buckets[i].first) KeyT(other.Buckets[i].first);
221221 if (!KeyInfoT::isEqual(Buckets[i].first, getEmptyKey()) &&
222222 !KeyInfoT::isEqual(Buckets[i].first, getTombstoneKey()))
223223 new (&Buckets[i].second) ValueT(other.Buckets[i].second);