From 9af6156c5236829b602d9c522708f2f4f8f79573 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 11 Aug 2021 12:39:38 +0200 Subject: [PATCH] tsan: fix active mapping selection Fix bug introduced by commit 5d106f16b972. SANITIZER_IOSSIM is always defined, it's the value 0/1 that's meaningful. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D107888 --- compiler-rt/lib/tsan/rtl/tsan_platform.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h index a944fdc..e36ef21 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform.h +++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h @@ -648,8 +648,7 @@ ALWAYS_INLINE auto SelectMapping(Arg arg) { return Func::template Apply(arg); # endif #else // SANITIZER_GO -# if defined(__x86_64__) || defined(SANITIZER_IOSSIM) || \ - SANITIZER_MAC && !SANITIZER_IOS +# if defined(__x86_64__) || SANITIZER_IOSSIM || SANITIZER_MAC && !SANITIZER_IOS return Func::template Apply(arg); # elif defined(__aarch64__) && defined(__APPLE__) return Func::template Apply(arg); -- 2.7.4