[ASan] Un-break the Windows build

llvm-svn: 195624
This commit is contained in:
Timur Iskhodzhanov 2013-11-25 07:54:55 +00:00
parent c91d12ce80
commit 25cc3c55cc
2 changed files with 6 additions and 1 deletions

View File

@ -31,7 +31,7 @@
#include <stdarg.h>
#if SANITIZER_WINDOWS
#if SANITIZER_WINDOWS && !defined(va_copy)
#define va_copy(dst, src) ((dst) = (src))
#endif // _WIN32

View File

@ -18,7 +18,12 @@ namespace __sanitizer {
// Make the compiler think that something is going on there.
static inline void break_optimization(void *arg) {
#ifdef SANITIZER_WINDOWS
// FIXME: make sure this is actually enough.
__asm;
#else
__asm__ __volatile__("" : : "r" (arg) : "memory");
#endif
}
s64 internal_atoll(const char *nptr) {