[compiler-rt] r241227 - Add declaration of _ReadWriteBarrier. Fixes build of asan tests on Windows.

Peter Collingbourne peter at pcc.me.uk
Wed Jul 1 19:06:59 PDT 2015


Author: pcc
Date: Wed Jul  1 21:06:59 2015
New Revision: 241227

URL: http://llvm.org/viewvc/llvm-project?rev=241227&view=rev
Log:
Add declaration of _ReadWriteBarrier. Fixes build of asan tests on Windows.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h?rev=241227&r1=241226&r2=241227&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h Wed Jul  1 21:06:59 2015
@@ -23,6 +23,11 @@
 #include "sanitizer_list.h"
 #include "sanitizer_mutex.h"
 
+#ifdef _MSC_VER
+extern "C" void _ReadWriteBarrier();
+#pragma intrinsic(_ReadWriteBarrier)
+#endif
+
 namespace __sanitizer {
 struct StackTrace;
 struct AddressInfo;





More information about the llvm-commits mailing list