diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-18 19:55:35 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-18 19:55:35 +0000 |
commit | a2d4b09a557aa233f0deeddb574459467865139f (patch) | |
tree | f4e6ec52f5fb11170195680ff7905b540c836c93 /compiler-rt | |
parent | e13fd1c43056f2d39651d0a3839231d335ce14e9 (diff) | |
download | bcm5719-llvm-a2d4b09a557aa233f0deeddb574459467865139f.tar.gz bcm5719-llvm-a2d4b09a557aa233f0deeddb574459467865139f.zip |
Revert "[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore" (r215708)
This is still needed for VS2012.
llvm-svn: 215930
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_printf.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc index fb049657116..8018131245b 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc @@ -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; |