mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
silence some -Wnon-pod-memset warnings, since std::pair is not POD.
llvm-svn: 130364
This commit is contained in:
parent
86181251f3
commit
70762e6755
@ -73,7 +73,7 @@ public:
|
|||||||
}
|
}
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (NumBuckets)
|
if (NumBuckets)
|
||||||
memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
|
memset((void*)Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
|
||||||
#endif
|
#endif
|
||||||
operator delete(Buckets);
|
operator delete(Buckets);
|
||||||
}
|
}
|
||||||
@ -426,7 +426,7 @@ private:
|
|||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (OldNumBuckets)
|
if (OldNumBuckets)
|
||||||
memset(OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
|
memset((void*)OldBuckets, 0x5a, sizeof(BucketT)*OldNumBuckets);
|
||||||
#endif
|
#endif
|
||||||
// Free the old table.
|
// Free the old table.
|
||||||
operator delete(OldBuckets);
|
operator delete(OldBuckets);
|
||||||
|
Loading…
Reference in New Issue
Block a user