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 | ab5be26af5828e8b83a6d6258f5e5a17f8d47cea (patch) | |
| tree | fd13ebfb44fcb5a6a4e2b53e7457eeab5ca953a6 /compiler-rt/lib/asan/asan_mapping.h | |
| parent | 9e722aed4a60fbe1f59396f31705be8223054da3 (diff) | |
| download | bcm5719-llvm-ab5be26af5828e8b83a6d6258f5e5a17f8d47cea.tar.gz bcm5719-llvm-ab5be26af5828e8b83a6d6258f5e5a17f8d47cea.zip | |
[asan] speedup by more than 2x handling of the small memset/memcpy/etc calls
llvm-svn: 175728
Diffstat (limited to 'compiler-rt/lib/asan/asan_mapping.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h index 12035e3d3bd..feaf3533851 100644 --- a/compiler-rt/lib/asan/asan_mapping.h +++ b/compiler-rt/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)) |

