summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_mapping.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-21 07:07:39 +0000
committerKostya Serebryany <kcc@google.com>2013-02-21 07:07:39 +0000
commitab5be26af5828e8b83a6d6258f5e5a17f8d47cea (patch)
treefd13ebfb44fcb5a6a4e2b53e7457eeab5ca953a6 /compiler-rt/lib/asan/asan_mapping.h
parent9e722aed4a60fbe1f59396f31705be8223054da3 (diff)
downloadbcm5719-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.h2
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))
OpenPOWER on IntegriCloud