[tsan] fix lint

llvm-svn: 160504
This commit is contained in:
Kostya Serebryany 2012-07-19 12:22:04 +00:00
parent a415df6539
commit 7a32f8dcb8
1 changed files with 1 additions and 2 deletions

View File

@ -81,7 +81,7 @@ void *memalign() { assert(0); }
int posix_memalign(void **memptr, size_t alignment, size_t size) {
*memptr = allocator.Allocate(&cache, size, alignment);
CHECK(((uptr)*memptr & (alignment - 1)) == 0);
CHECK_EQ(((uptr)*memptr & (alignment - 1)), 0);
return 0;
}
@ -95,6 +95,5 @@ void *pvalloc(size_t size) {
if (size == 0) size = kPageSize;
return allocator.Allocate(&cache, size, kPageSize);
}
}
#endif