diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-21 07:07:39 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-21 07:07:39 +0000 |
commit | a84805f1ccb2b7d4b6c0ba384bd3541fa4eaf808 (patch) | |
tree | b901bd491adc1d509c5df729b9d2e61366831aea /lib/asan/asan_mapping.h | |
parent | 20aed578bf010a91222aed0096d87e0d887a28e9 (diff) |
[asan] speedup by more than 2x handling of the small memset/memcpy/etc calls
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_mapping.h')
-rw-r--r-- | lib/asan/asan_mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_mapping.h b/lib/asan/asan_mapping.h index 12035e3d3..feaf35338 100644 --- a/lib/asan/asan_mapping.h +++ b/lib/asan/asan_mapping.h @@ -206,7 +206,7 @@ static inline bool AddrIsAlignedByGranularity(uptr a) { static inline bool AddressIsPoisoned(uptr a) { PROFILE_ASAN_MAPPING(); const uptr kAccessSize = 1; - u8 *shadow_address = (u8*)MemToShadow(a); + u8 *shadow_address = (u8*)MEM_TO_SHADOW(a); s8 shadow_value = *shadow_address; if (shadow_value) { u8 last_accessed_byte = (a & (SHADOW_GRANULARITY - 1)) |