mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
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:
parent
4499176789
commit
d01f2633b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user