diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-08-04 18:30:41 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-08-04 18:30:41 +0000 |
commit | c750de680c2afbd6a54ca033e7db0710b7303720 (patch) | |
tree | 38491e13f70a7d6981f56b8230188585680b841a /lib | |
parent | 61fc5295eff10163308fa78056f19364c1687e1c (diff) |
fix whitespaces from https://reviews.llvm.org/D23170
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@277746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator_primary64.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator_primary64.h b/lib/sanitizer_common/sanitizer_allocator_primary64.h index c7c906bc3..1ca83879a 100644 --- a/lib/sanitizer_common/sanitizer_allocator_primary64.h +++ b/lib/sanitizer_common/sanitizer_allocator_primary64.h @@ -98,7 +98,8 @@ class SizeClassAllocator64 { if (kUsingConstantSpaceBeg) return reinterpret_cast<uptr>(p) & ~(kRegionSize - 1); uptr space_beg = SpaceBeg(); - return ((reinterpret_cast<uptr>(p) - space_beg) & ~(kRegionSize - 1)) + space_beg; + return ((reinterpret_cast<uptr>(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; |