[compiler-rt] [NFC] [scudo] turn DCHECK into CHECK (PR #84255)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 15:22:35 PST 2024
================
@@ -1570,7 +1570,7 @@ class Allocator {
if (TabSize > UINT32_MAX / kFramesPerStack)
return;
u32 RingSize = static_cast<u32>(TabSize * kFramesPerStack);
- DCHECK(isPowerOfTwo(RingSize));
+ CHECK(isPowerOfTwo(RingSize));
----------------
fmayer wrote:
because this is impossible by construction, and this just makes it explicit. a power of two times a power of two is always a power of two
https://github.com/llvm/llvm-project/pull/84255
More information about the llvm-commits
mailing list