[compiler-rt] r215930 - Revert "[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore" (r215708)
Hans Wennborg
hans at hanshq.net
Mon Aug 18 12:55:35 PDT 2014
Author: hans
Date: Mon Aug 18 14:55:35 2014
New Revision: 215930
URL: http://llvm.org/viewvc/llvm-project?rev=215930&view=rev
Log:
Revert "[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore" (r215708)
This is still needed for VS2012.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc?rev=215930&r1=215929&r2=215930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc Mon Aug 18 14:55:35 2014
@@ -22,6 +22,10 @@
#include <stdio.h>
#include <stdarg.h>
+#if SANITIZER_WINDOWS && !defined(va_copy)
+# define va_copy(dst, src) ((dst) = (src))
+#endif
+
namespace __sanitizer {
StaticSpinMutex CommonSanitizerReportMutex;
More information about the llvm-commits
mailing list