Fix CopyFrom for non-POD data types.
authorOwen Anderson <resistor@mac.com>
Fri, 21 Sep 2007 20:55:54 +0000 (20:55 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 21 Sep 2007 20:55:54 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42208 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index c291406d51a5ae4a1b337f396bfd82e20287992b..0b9cddf092afe76bf69389a253ef7ce22dbf35af 100644 (file)
@@ -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;
   }