[tsan] add a compile-time error for 64-bit-only support
authorKostya Serebryany <kcc@google.com>
Tue, 4 Dec 2012 15:13:30 +0000 (15:13 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 4 Dec 2012 15:13:30 +0000 (15:13 +0000)
llvm-svn: 169275

compiler-rt/lib/tsan/rtl/tsan_rtl.h

index 8437ab5..af8951b 100644 (file)
 #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.