From 4938d347723d452786c1a7c1d1b9ec79121b0040 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 21 Sep 2007 20:55:54 +0000 Subject: Fix CopyFrom for non-POD data types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42208 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/DenseMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index c291406..0b9cddf 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -210,7 +210,7 @@ private: new (Buckets[i].first) KeyT(other.Buckets[i].first); if (Buckets[i].first != getEmptyKey() && Buckets[i].first != getTombstoneKey()) - new (Buckets[i].second) ValueT(other.Buckets[i].second); + new (&Buckets[i].second) ValueT(other.Buckets[i].second); } NumBuckets = other.NumBuckets; } -- cgit v1.1