mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Often GCC can see that NumBuckets is zero here, resulting in a warning
about possibly swapped memset parameters. Avoid the warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127170 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42daf912e0
commit
e54f64899f
@ -72,7 +72,8 @@ public:
|
||||
P->first.~KeyT();
|
||||
}
|
||||
#ifndef NDEBUG
|
||||
memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
|
||||
if (NumBuckets)
|
||||
memset(Buckets, 0x5a, sizeof(BucketT)*NumBuckets);
|
||||
#endif
|
||||
operator delete(Buckets);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user