diff --git a/compiler-rt/lib/dfsan/dfsan_platform.h b/compiler-rt/lib/dfsan/dfsan_platform.h index bf852142cd49..f37cc5b1b35c 100644 --- a/compiler-rt/lib/dfsan/dfsan_platform.h +++ b/compiler-rt/lib/dfsan/dfsan_platform.h @@ -103,10 +103,14 @@ uptr ShadowAddr() { return MappingArchImpl(); } -#if defined(__x86_64__) ALWAYS_INLINE -uptr OriginAddr() { return MappingArchImpl(); } +uptr OriginAddr() { +#if defined(__x86_64__) + return MappingArchImpl(); +#else + return 0; #endif +} ALWAYS_INLINE uptr UnionTableAddr() {