[compiler-rt] r308120 - [asan] Attempt to fix test in Windows after r308064

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 15 17:40:40 PDT 2017


Author: vitalybuka
Date: Sat Jul 15 17:40:40 2017
New Revision: 308120

URL: http://llvm.org/viewvc/llvm-project?rev=308120&view=rev
Log:
[asan] Attempt to fix test in Windows after r308064

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_errno.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_errno.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_errno.h?rev=308120&r1=308119&r2=308120&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_errno.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_errno.h Sat Jul 15 17:40:40 2017
@@ -26,6 +26,8 @@
 #  define __errno_location __error
 #elif SANITIZER_ANDROID
 #  define __errno_location __errno
+#elif SANITIZER_WINDOWS
+#  define __errno_location _errno
 #endif
 
 extern "C" int *__errno_location();




More information about the llvm-commits mailing list