tsan: fix active mapping selection

Fix bug introduced by commit 5d106f16b9.
SANITIZER_IOSSIM is always defined,
it's the value 0/1 that's meaningful.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D107888
This commit is contained in:
Dmitry Vyukov 2021-08-11 12:39:38 +02:00
parent 9f517fd11e
commit 9af6156c52
1 changed files with 1 additions and 2 deletions

View File

@ -648,8 +648,7 @@ ALWAYS_INLINE auto SelectMapping(Arg arg) {
return Func::template Apply<MappingGo48>(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<Mapping48AddressSpace>(arg);
# elif defined(__aarch64__) && defined(__APPLE__)
return Func::template Apply<MappingAppleAarch64>(arg);