forked from OSchip/llvm-project
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:
parent
9f517fd11e
commit
9af6156c52
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue