Skip to content

Commit ae99482

Browse files
committed
nits
1 parent f5e48f6 commit ae99482

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ inline uptr Log2(uptr x) {
489489

490490
inline bool IntervalsAreSeparate(uptr start1, uptr end1, uptr start2,
491491
uptr end2) {
492-
CHECK(start1 <= end1);
493-
CHECK(start2 <= end2);
492+
CHECK_LE(start1, end1);
493+
CHECK_LE(start2, end2);
494494
return (end1 < start2) || (end2 < start1);
495495
}
496496

compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extern "C" {
105105
mach_msg_type_number_t *infoCnt);
106106

107107
extern const void* _dyld_get_shared_cache_range(size_t* length);
108-
}
108+
}
109109

110110
# if !SANITIZER_GO
111111
// Weak symbol no-op when TSan is not linked
@@ -1415,7 +1415,7 @@ uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding,
14151415
//
14161416
// NOTE: range_end is inclusive
14171417
//
1418-
// WARNING: This function should NOT allocate memory, since it is
1418+
// WARNING: This function must NOT allocate memory, since it is
14191419
// used in InitializeShadowMemory between where we search for
14201420
// space for shadow and where we actually allocate it.
14211421
bool MemoryRangeIsAvailable(uptr range_start, uptr range_end) {

0 commit comments

Comments
 (0)