summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-06-29 14:14:32 +0000
committerKostya Serebryany <kcc@google.com>2012-06-29 14:14:32 +0000
commit5766a9e0156771b077635395146111efe56b2c70 (patch)
tree676e6a8621a9ac1bc14bffc53beebe1bb1920ffb
parente791a7ae36474875218cb050fa516e30728c6b7a (diff)
downloadbcm5719-llvm-5766a9e0156771b077635395146111efe56b2c70.tar.gz
bcm5719-llvm-5766a9e0156771b077635395146111efe56b2c70.zip
[asan] fix lint
llvm-svn: 159429
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_linux.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
index 00363d0631f..1208e230448 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
@@ -213,23 +213,23 @@ bool ProcessMaps::Next(uptr *start, uptr *end, uptr *offset,
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_++;
OpenPOWER on IntegriCloud