diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-08-05 13:20:39 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-08-05 13:20:39 +0000 |
| commit | b42ea7ef21b8157fc4065b707bcf54eb19d7eafb (patch) | |
| tree | 55d1b0e754156b0ac5c638d3ee9f792f0b2eef07 /compiler-rt/lib/sanitizer_common | |
| parent | f52b717db365d49d8b5a5b5e34d6fb3a9f2cfa86 (diff) | |
| download | bcm5719-llvm-b42ea7ef21b8157fc4065b707bcf54eb19d7eafb.tar.gz bcm5719-llvm-b42ea7ef21b8157fc4065b707bcf54eb19d7eafb.zip | |
Lint fixes
llvm-svn: 187726
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
3 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h index f7e2b899618..ada1a0c33f4 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator.h @@ -1127,7 +1127,9 @@ class LargeMmapAllocator { CHECK(IsAligned(p, page_size_)); return reinterpret_cast<Header*>(p - page_size_); } - Header *GetHeader(const void *p) { return GetHeader(reinterpret_cast<uptr>(p)); } + Header *GetHeader(const void *p) { + return GetHeader(reinterpret_cast<uptr>(p)); + } void *GetUser(Header *h) { CHECK(IsAligned((uptr)h, page_size_)); diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc index 3f728d34049..87d684130b3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc @@ -169,7 +169,6 @@ PRE_SYSCALL(read)(unsigned int fd, void *buf, uptr count) { POST_SYSCALL(read)(long res, unsigned int fd, void *buf, uptr count) { if (res > 0 && buf) POST_WRITE(buf, res); } - } // extern "C" #undef PRE_SYSCALL diff --git a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh index 246add1094c..b24684e155c 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh +++ b/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh @@ -40,8 +40,8 @@ cd ${LLVM_CHECKOUT} # LLVM Instrumentation LLVM_INSTRUMENTATION=lib/Transforms/Instrumentation LLVM_LINT_FILTER=-,+whitespace -${CPPLINT} --filter=${LLVM_LINT_FILTER} ${LLVM_INSTRUMENTATION}/*Sanitizer.cpp \ - ${LLVM_INSTRUMENTATION}/BlackList.* +${CPPLINT} --filter=${LLVM_LINT_FILTER} lib/Transforms/Instrumentation/*Sanitizer.cpp \ + lib/Transforms/Utils/SpecialCaseList.cpp COMPILER_RT=projects/compiler-rt |

