[compiler-rt] d3ca749 - [ASan] Fix Windows build by excluding a test which requires assembly callback versions.
Kirill Stoimenov via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 9 15:40:49 PST 2021
Author: Kirill Stoimenov
Date: 2021-12-09T23:40:40Z
New Revision: d3ca749288c9507af036eb209ad999bedf4282f5
URL: https://github.com/llvm/llvm-project/commit/d3ca749288c9507af036eb209ad999bedf4282f5
DIFF: https://github.com/llvm/llvm-project/commit/d3ca749288c9507af036eb209ad999bedf4282f5.diff
LOG: [ASan] Fix Windows build by excluding a test which requires assembly callback versions.
Reviewed By: kstoimenov
Differential Revision: https://reviews.llvm.org/D115475
Added:
Modified:
compiler-rt/lib/asan/tests/asan_noinst_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/tests/asan_noinst_test.cpp b/compiler-rt/lib/asan/tests/asan_noinst_test.cpp
index abaa6f192db1f..1132c1684ded3 100644
--- a/compiler-rt/lib/asan/tests/asan_noinst_test.cpp
+++ b/compiler-rt/lib/asan/tests/asan_noinst_test.cpp
@@ -281,9 +281,10 @@ TEST(AddressSanitizer, LoadStoreCallbacks) {
TestLoadStoreCallbacks(cb);
}
-// clang-format off
-#if defined(__x86_64__)
+#if defined(__x86_64__) && \
+ !(defined(SANITIZER_MAC) || defined(SANITIZER_WINDOWS))
+// clang-format off
#define CALL_ASAN_MEMORY_ACCESS_CALLBACK_ADD(s, reg, op) \
void CallAsanMemoryAccessAdd##reg##op##s(uptr address) { \
asm("push %%" #reg " \n" \
@@ -341,6 +342,6 @@ TEST_ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R12)
TEST_ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R13)
TEST_ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R14)
TEST_ASAN_MEMORY_ACCESS_CALLBACKS_ADD(R15)
+// clang-format on
#endif // defined(__x86_64__)
-// clang-format on
More information about the llvm-commits
mailing list