diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-17 18:07:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-17 18:07:43 +0000 |
commit | 2b7470eb54880ce7f74469d6e09eaf7f0864f8ab (patch) | |
tree | 380530eded1f197c0ade0505f2a7b4273e77b43a /include/llvm | |
parent | 95350b9cd2c7ccdc5d1e2118742c1a43012c7a9f (diff) | |
download | external_llvm-2b7470eb54880ce7f74469d6e09eaf7f0864f8ab.zip external_llvm-2b7470eb54880ce7f74469d6e09eaf7f0864f8ab.tar.gz external_llvm-2b7470eb54880ce7f74469d6e09eaf7f0864f8ab.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index b29c691..2caec63 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -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); |