diff options
author | Kostya Serebryany <kcc@google.com> | 2013-05-30 08:43:30 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-05-30 08:43:30 +0000 |
commit | f8c3f3db72780cd57ce7959e70167b7553e55fb8 (patch) | |
tree | c55149ccd1a4bc059e31f2c575e034aac92fac8b /lib/asan/asan_poisoning.h | |
parent | 41dcb1c8848c8677c06216c6fcaa9b001f736778 (diff) | |
download | compiler-rt-f8c3f3db72780cd57ce7959e70167b7553e55fb8.tar.gz |
[sanitizer] introduce LargeMmapAllocator::GetBlockBeginFastSingleThreaded, required for LeakSanitizer to work faster. Also fix lint.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_poisoning.h')
-rw-r--r-- | lib/asan/asan_poisoning.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.h b/lib/asan/asan_poisoning.h index 91275465d..bb886dd7f 100644 --- a/lib/asan/asan_poisoning.h +++ b/lib/asan/asan_poisoning.h @@ -50,7 +50,8 @@ ALWAYS_INLINE void FastPoisonShadowPartialRightRedzone( } else if (i >= size) { *shadow = (SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable } else { - *shadow = static_cast<u8>(size - i); // first size-i bytes are addressable + // first size-i bytes are addressable + *shadow = static_cast<u8>(size - i); } } } |