summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/hwasan/hwasan_mapping.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/hwasan/hwasan_mapping.h b/compiler-rt/lib/hwasan/hwasan_mapping.h
index 4650532e71e..650a5aefcb2 100644
--- a/compiler-rt/lib/hwasan/hwasan_mapping.h
+++ b/compiler-rt/lib/hwasan/hwasan_mapping.h
@@ -53,10 +53,10 @@ static constexpr __sanitizer::u64 kDefaultShadowSentinel = ~(__sanitizer::u64)0;
constexpr __sanitizer::uptr kShadowScale = 4;
constexpr __sanitizer::uptr kShadowAlignment = 1ULL << kShadowScale;
-#if defined(__x86_64__)
-# define HWASAN_FIXED_MAPPING 1
-#else
+#if SANITIZER_ANDROID
# define HWASAN_FIXED_MAPPING 0
+#else
+# define HWASAN_FIXED_MAPPING 1
#endif
#if HWASAN_FIXED_MAPPING
OpenPOWER on IntegriCloud