[llvm-commits] [compiler-rt] r169275 - /compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h

Kostya Serebryany kcc at google.com
Tue Dec 4 07:13:30 PST 2012


Author: kcc
Date: Tue Dec  4 09:13:30 2012
New Revision: 169275

URL: http://llvm.org/viewvc/llvm-project?rev=169275&view=rev
Log:
[tsan] add a compile-time error for 64-bit-only support

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h?rev=169275&r1=169274&r2=169275&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h Tue Dec  4 09:13:30 2012
@@ -37,6 +37,10 @@
 #include "tsan_report.h"
 #include "tsan_platform.h"
 
+#if SANITIZER_WORDSIZE != 64
+# error "ThreadSanitizer is supported only on 64-bit platforms"
+#endif
+
 namespace __tsan {
 
 // Descriptor of user's memory block.





More information about the llvm-commits mailing list