summaryrefslogtreecommitdiff
path: root/lib/asan/asan_poisoning.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-05-30 08:43:30 +0000
committerKostya Serebryany <kcc@google.com>2013-05-30 08:43:30 +0000
commitf8c3f3db72780cd57ce7959e70167b7553e55fb8 (patch)
treec55149ccd1a4bc059e31f2c575e034aac92fac8b /lib/asan/asan_poisoning.h
parent41dcb1c8848c8677c06216c6fcaa9b001f736778 (diff)
downloadcompiler-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.h3
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);
}
}
}