projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95350b9
)
Fix use of placement new to actually use an address.
author
Owen Anderson
<resistor@mac.com>
Tue, 17 Jun 2008 18:07:43 +0000
(18:07 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 17 Jun 2008 18:07:43 +0000
(18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52423
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/DenseMap.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/DenseMap.h
b/include/llvm/ADT/DenseMap.h
index b29c69156277cc0ea5a52702430d837d37761d65..2caec63ee4126b5465171f0f35a90e4b5f3b9775 100644
(file)
--- 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);