Skip to content

Commit f71ba7d

Browse files
authored
[scudo] Convert assert to CHECK macro. (#67184)
This code is only for riscv, but use the CHECK macro to avoid unused parameters problems if assert is not defined.
1 parent a921f2a commit f71ba7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/scudo/standalone/tests/combined_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ struct TestAllocatorStorage {
106106

107107
// To alleviate some problem, let's skip the thread safety analysis here.
108108
static void *get(size_t size) NO_THREAD_SAFETY_ANALYSIS {
109-
assert(size <= kMaxSize &&
110-
"Allocation size doesn't fit in the allocator storage");
109+
CHECK(size <= kMaxSize &&
110+
"Allocation size doesn't fit in the allocator storage");
111111
M.lock();
112112
return AllocatorStorage;
113113
}

0 commit comments

Comments
 (0)