[sanitizer] replace CHECK with CHECK_XY in two places for better diagnostics
authorKostya Serebryany <kcc@google.com>
Mon, 12 Sep 2016 20:39:13 +0000 (20:39 +0000)
committerKostya Serebryany <kcc@google.com>
Mon, 12 Sep 2016 20:39:13 +0000 (20:39 +0000)
llvm-svn: 281255

compiler-rt/lib/sanitizer_common/sanitizer_common.h

index 2e8039b..85e2e8d 100644 (file)
@@ -453,8 +453,8 @@ INLINE uptr RoundUpToPowerOfTwo(uptr size) {
   if (IsPowerOfTwo(size)) return size;
 
   uptr up = MostSignificantSetBitIndex(size);
-  CHECK(size < (1ULL << (up + 1)));
-  CHECK(size > (1ULL << up));
+  CHECK_LT(size, (1ULL << (up + 1)));
+  CHECK_GT(size, (1ULL << up));
   return 1ULL << (up + 1);
 }