Fix use of placement new to actually use an address.

llvm-svn: 52423
This commit is contained in:
Owen Anderson 2008-06-17 18:07:43 +00:00
parent 5696e7badf
commit edcfe385fe
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ private:
memcpy(Buckets, other.Buckets, other.NumBuckets * sizeof(BucketT));
else
for (size_t i = 0; i < other.NumBuckets; ++i) {
new (Buckets[i].first) KeyT(other.Buckets[i].first);
new (&Buckets[i].first) KeyT(other.Buckets[i].first);
if (!KeyInfoT::isEqual(Buckets[i].first, getEmptyKey()) &&
!KeyInfoT::isEqual(Buckets[i].first, getTombstoneKey()))
new (&Buckets[i].second) ValueT(other.Buckets[i].second);