From 242b6305f08c7f4d17acf74bc03d44e39e0027d6 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 4 Dec 2012 15:13:30 +0000 Subject: [PATCH] [tsan] add a compile-time error for 64-bit-only support llvm-svn: 169275 --- compiler-rt/lib/tsan/rtl/tsan_rtl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.h b/compiler-rt/lib/tsan/rtl/tsan_rtl.h index 8437ab5..af8951b 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.h +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.h @@ -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. -- 2.7.4