silence some -Wnon-pod-memset warnings, since std::pair is not POD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2011-04-28 00:55:53 +00:00
parent bd1253809b
commit 450ed1a05b

View File

@ -73,7 +73,7 @@ public:
}
#ifndef NDEBUG
if (NumBuckets)
memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
memset((void*)Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
#endif
operator delete(Buckets);
}
@ -426,7 +426,7 @@ private:
#ifndef NDEBUG
if (OldNumBuckets)
memset(OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
memset((void*)OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
#endif
// Free the old table.
operator delete(OldBuckets);