aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-09-21 20:55:54 +0000
committerOwen Anderson <resistor@mac.com>2007-09-21 20:55:54 +0000
commit4938d347723d452786c1a7c1d1b9ec79121b0040 (patch)
tree1439e8545cff8fc4f423be9658730891e2a8047d /include
parent27725bf13f188c2b46b0211fca0eb9d2bcbcafed (diff)
downloadexternal_llvm-4938d347723d452786c1a7c1d1b9ec79121b0040.zip
external_llvm-4938d347723d452786c1a7c1d1b9ec79121b0040.tar.gz
external_llvm-4938d347723d452786c1a7c1d1b9ec79121b0040.tar.bz2
Fix CopyFrom for non-POD data types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/DenseMap.h2
1 files changed, 1 insertions, 1 deletions
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;
}