SHA256
1
0
forked from pool/llvm
llvm/asan-sse2.patch

30 lines
1022 B
Diff

Index: llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc
===================================================================
--- llvm.orig/projects/compiler-rt/lib/asan/tests/asan_test.cc
+++ llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc
@@ -669,7 +669,8 @@ TEST(AddressSanitizer, ThreadStackReuseT
PTHREAD_JOIN(t, 0);
}
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__) && !defined(__i586__)
+#include <emmintrin.h>
TEST(AddressSanitizer, Store128Test) {
char *a = Ident((char*)malloc(Ident(12)));
char *p = a;
Index: llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
===================================================================
--- llvm.orig/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
+++ llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h
@@ -41,10 +41,6 @@
#include <unistd.h>
#endif
-#if defined(__i386__) || defined(__x86_64__)
-#include <emmintrin.h>
-#endif
-
#ifndef __APPLE__
#include <malloc.h>
#endif