Fix CopyFrom for non-POD data types.

llvm-svn: 42208
This commit is contained in:
Owen Anderson 2007-09-21 20:55:54 +00:00
parent 6820dc306f
commit 40196b7929

View 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;
}