diff --git a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp index f00d475148e8d..1143aaab8371d 100644 --- a/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/combined_test.cpp @@ -106,8 +106,8 @@ struct TestAllocatorStorage { // To alleviate some problem, let's skip the thread safety analysis here. static void *get(size_t size) NO_THREAD_SAFETY_ANALYSIS { - assert(size <= kMaxSize && - "Allocation size doesn't fit in the allocator storage"); + CHECK(size <= kMaxSize && + "Allocation size doesn't fit in the allocator storage"); M.lock(); return AllocatorStorage; }