diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-01-21 11:36:38 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-01-21 11:36:38 +0000 |
commit | 87b52b910037447eccb92546b24b5e06181a1545 (patch) | |
tree | cc34a9930d3b46cf683db696073dea35392b0656 /lib/asan/asan_mapping.h | |
parent | dcfa17de16e168060d94a9071b282a15a1cad0e6 (diff) |
Fixup for r173021: build tests with zero-based shadow on Android only, fix condition in checking for shadow gap in asan_mapping.h
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173026 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 8decdf337..d7a9639c4 100644 --- a/lib/asan/asan_mapping.h +++ b/lib/asan/asan_mapping.h @@ -113,7 +113,7 @@ static inline bool AddrIsInShadow(uptr a) { static inline bool AddrIsInShadowGap(uptr a) { // In zero-based shadow mode we treat addresses near zero as addresses // in shadow gap as well. - if (ASAN_FLEXIBLE_MAPPING_AND_OFFSET) + if (SHADOW_OFFSET == 0) return a <= kShadowGapEnd; return a >= kShadowGapBeg && a <= kShadowGapEnd; } |