Add declaration of _ReadWriteBarrier. Fixes build of asan tests on Windows.

llvm-svn: 241227
This commit is contained in:
Peter Collingbourne 2015-07-02 02:06:59 +00:00
parent 7869d4b846
commit 23a410cc64
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@
#include "sanitizer_list.h" #include "sanitizer_list.h"
#include "sanitizer_mutex.h" #include "sanitizer_mutex.h"
#ifdef _MSC_VER
extern "C" void _ReadWriteBarrier();
#pragma intrinsic(_ReadWriteBarrier)
#endif
namespace __sanitizer { namespace __sanitizer {
struct StackTrace; struct StackTrace;
struct AddressInfo; struct AddressInfo;