[compiler-rt] [NFC] [scudo] turn DCHECK into CHECK (PR #84255)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 15:21:39 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));
 
----------------
ChiaHungDuan wrote:

I thought you would like to simply return false instead of abortion in #82683, why do we want to change to CHECK ?

https://github.com/llvm/llvm-project/pull/84255


More information about the llvm-commits mailing list