mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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
This commit is contained in:
parent
95350b9cd2
commit
2b7470eb54
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user