diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-09 10:20:05 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-03-09 10:20:05 -0800 |
commit | db7bca28638e86f18e5ba3b936c900144ef29b93 (patch) | |
tree | db99136d1656cf3b90bfa46f1f1756148ff3abfd /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 341623653d891386b7943445981565ed1dff2a18 (diff) | |
download | llvm-db7bca28638e86f18e5ba3b936c900144ef29b93.zip llvm-db7bca28638e86f18e5ba3b936c900144ef29b93.tar.gz llvm-db7bca28638e86f18e5ba3b936c900144ef29b93.tar.bz2 |
[sanitizer][mips] Fix the condition to include sanitizer_atomic_clang_mips.h
The Glibc header [1] define _ABIO32 unconditionally on MIPS. So we need
to compare _MIPS_SIM and _ABIO32 to know if we are actually building for
MIPS32. Using sanitizer_atomic_clang_mips.h can cause test failures and
hangs on MIPS64.
[1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/sgidefs.h
Reviewed By: dvyukov, vitalybuka, MaskRay
Differential Revision: https://reviews.llvm.org/D121207
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions