mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
Often GCC can see that NumBuckets is zero here, resulting in a warning
about possibly swapped memset parameters. Avoid the warning. llvm-svn: 127170
This commit is contained in:
parent
cbd2f07c7e
commit
323db6bb99
@ -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…
x
Reference in New Issue
Block a user