asan: fix build
authorDmitry Vyukov <dvyukov@google.com>
Thu, 14 Apr 2016 11:40:08 +0000 (11:40 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 14 Apr 2016 11:40:08 +0000 (11:40 +0000)
Some bots failed with:

sanitizer_quarantine.h:104:7: error: unused typedef 'assertion_failed__104' [-Werror,-Wunused-local-typedef]
      COMPILER_CHECK(kPrefetch <= ARRAY_SIZE(b->batch));

Replace COMPILER_CHECK with CHECK.

llvm-svn: 266291

compiler-rt/lib/sanitizer_common/sanitizer_quarantine.h

index 095c806..ccc22bf 100644 (file)
@@ -101,7 +101,7 @@ class Quarantine {
   void NOINLINE DoRecycle(Cache *c, Callback cb) {
     while (QuarantineBatch *b = c->DequeueBatch()) {
       const uptr kPrefetch = 16;
-      COMPILER_CHECK(kPrefetch <= ARRAY_SIZE(b->batch));
+      CHECK(kPrefetch <= ARRAY_SIZE(b->batch));
       for (uptr i = 0; i < kPrefetch; i++)
         PREFETCH(b->batch[i]);
       for (uptr i = 0, count = b->count; i < count; i++) {