forked from OSchip/llvm-project
parent
c91d12ce80
commit
25cc3c55cc
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue