forked from OSchip/llvm-project
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
e9fdc06fec
commit
e5d7369e1e
|
@ -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