Skip to content

Commit 8b6c034

Browse files
authored
Switch back to SANITIZER_ANDROID
1 parent ac873a7 commit 8b6c034

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler-rt/lib/hwasan/hwasan_linux.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ static uptr GetHighMemEnd() {
106106
}
107107

108108
static void InitializeShadowBaseAddress(uptr shadow_size_bytes) {
109-
if (SANITIZER_CAN_USE_PREINIT_ARRAY &&
110-
flags()->fixed_shadow_base != (uptr)-1) {
109+
if (!SANITIZER_ANDROID && flags()->fixed_shadow_base != (uptr)-1) {
111110
__hwasan_shadow_memory_dynamic_address = flags()->fixed_shadow_base;
112111
} else {
113112
__hwasan_shadow_memory_dynamic_address =

0 commit comments

Comments
 (0)