From: Kostya Serebryany Date: Tue, 4 Dec 2012 15:13:30 +0000 (+0000) Subject: [tsan] add a compile-time error for 64-bit-only support X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=242b6305f08c7f4d17acf74bc03d44e39e0027d6;p=platform%2Fupstream%2Fllvm.git [tsan] add a compile-time error for 64-bit-only support llvm-svn: 169275 --- 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.