summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-05-21 08:30:18 +0000
committerKostya Serebryany <kcc@google.com>2014-05-21 08:30:18 +0000
commite88161626f2ab30634051931962341058e2c781b (patch)
tree65ec712aadfaba27acfc3d931c9ce99f34190bb4 /compiler-rt/lib
parent687933f55d73389b7d35cb68669d08644baae6fa (diff)
downloadbcm5719-llvm-e88161626f2ab30634051931962341058e2c781b.tar.gz
bcm5719-llvm-e88161626f2ab30634051931962341058e2c781b.zip
[lsan] disable lsan if wordsize is not 64
llvm-svn: 209283
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/lsan/lsan_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h
index eacff66acfd..c0f12e651f1 100644
--- a/compiler-rt/lib/lsan/lsan_common.h
+++ b/compiler-rt/lib/lsan/lsan_common.h
@@ -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
OpenPOWER on IntegriCloud