[lsan] disable lsan if wordsize is not 64
authorKostya Serebryany <kcc@google.com>
Wed, 21 May 2014 08:30:18 +0000 (08:30 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 21 May 2014 08:30:18 +0000 (08:30 +0000)
llvm-svn: 209283

compiler-rt/lib/lsan/lsan_common.h

index eacff66..c0f12e6 100644 (file)
@@ -21,7 +21,7 @@
 #include "sanitizer_common/sanitizer_platform.h"
 #include "sanitizer_common/sanitizer_symbolizer.h"
 
-#if SANITIZER_LINUX && defined(__x86_64__)
+#if SANITIZER_LINUX && defined(__x86_64__) && (SANITIZER_WORDSIZE == 64)
 #define CAN_SANITIZE_LEAKS 1
 #else
 #define CAN_SANITIZE_LEAKS 0