Fix more zero length memset warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2011-03-30 15:31:02 +00:00
parent 4499176789
commit d01f2633b9

View File

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