libsanitizer: cherry-pick db7bca28638e from upstream

libsanitizer/

	* sanitizer_common/sanitizer_atomic_clang.h: Ensures to only
	include sanitizer_atomic_clang_mips.h for O32.
This commit is contained in:
Xi Ruoyao 2022-03-11 10:59:29 +08:00
parent 77eb0461ab
commit a60a3a95d0
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ inline bool atomic_compare_exchange_weak(volatile T *a,
// This include provides explicit template instantiations for atomic_uint64_t
// on MIPS32, which does not directly support 8 byte atomics. It has to
// proceed the template definitions above.
#if defined(_MIPS_SIM) && defined(_ABIO32)
#include "sanitizer_atomic_clang_mips.h"
#if defined(_MIPS_SIM) && defined(_ABIO32) && _MIPS_SIM == _ABIO32
# include "sanitizer_atomic_clang_mips.h"
#endif
#undef ATOMIC_ORDER