[llvm-commits] [compiler-rt] r159429 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc

Kostya Serebryany kcc at google.com
Fri Jun 29 07:14:32 PDT 2012


Author: kcc
Date: Fri Jun 29 09:14:32 2012
New Revision: 159429

URL: http://llvm.org/viewvc/llvm-project?rev=159429&view=rev
Log:
[asan] fix lint

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=159429&r1=159428&r2=159429&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Fri Jun 29 09:14:32 2012
@@ -213,23 +213,23 @@
     next_line = last;
   // Example: 08048000-08056000 r-xp 00000000 03:0c 64593   /foo/bar
   *start = ParseHex(&current_);
-  CHECK(*current_++ == '-');
+  CHECK_EQ(*current_++, '-');
   *end = ParseHex(&current_);
-  CHECK(*current_++ == ' ');
+  CHECK_EQ(*current_++, ' ');
   CHECK(IsOnOf(*current_++, '-', 'r'));
   CHECK(IsOnOf(*current_++, '-', 'w'));
   CHECK(IsOnOf(*current_++, '-', 'x'));
   CHECK(IsOnOf(*current_++, 's', 'p'));
-  CHECK(*current_++ == ' ');
+  CHECK_EQ(*current_++, ' ');
   *offset = ParseHex(&current_);
-  CHECK(*current_++ == ' ');
+  CHECK_EQ(*current_++, ' ');
   ParseHex(&current_);
-  CHECK(*current_++ == ':');
+  CHECK_EQ(*current_++, ':');
   ParseHex(&current_);
-  CHECK(*current_++ == ' ');
+  CHECK_EQ(*current_++, ' ');
   while (IsDecimal(*current_))
     current_++;
-  CHECK(*current_++ == ' ');
+  CHECK_EQ(*current_++, ' ');
   // Skip spaces.
   while (current_ < next_line && *current_ == ' ')
     current_++;





More information about the llvm-commits mailing list