From d2b37ada4dd402dcf643648127c4bddcd6a1691d Mon Sep 17 00:00:00 2001 From: Etienne Bergeron Date: Thu, 4 Aug 2016 18:30:41 +0000 Subject: [PATCH] fix whitespaces from https://reviews.llvm.org/D23170 llvm-svn: 277746 --- .../lib/sanitizer_common/sanitizer_allocator_primary64.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h index c7c906bc3750..1ca83879a946 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h @@ -98,7 +98,8 @@ class SizeClassAllocator64 { if (kUsingConstantSpaceBeg) return reinterpret_cast(p) & ~(kRegionSize - 1); uptr space_beg = SpaceBeg(); - return ((reinterpret_cast(p) - space_beg) & ~(kRegionSize - 1)) + space_beg; + return ((reinterpret_cast(p) - space_beg) & ~(kRegionSize - 1)) + + space_beg; } uptr GetSizeClass(const void *p) { @@ -113,7 +114,7 @@ class SizeClassAllocator64 { uptr size = SizeClassMap::Size(class_id); if (!size) return nullptr; uptr chunk_idx = GetChunkIdx((uptr)p, size); - uptr reg_beg = GetRegionBegin(p); + uptr reg_beg = GetRegionBegin(p); uptr beg = chunk_idx * size; uptr next_beg = beg + size; if (class_id >= kNumClasses) return nullptr;