summaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_common.h
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
commit72a4588166670e397a15c4a97529c849dcb11b3f (patch)
treed4f23f2801cd999058a55af8e9cbcfccf000538e /lib/lsan/lsan_common.h
parent4751f4aab90634f0ffb5f2350dcdd43e5cec1a97 (diff)
[lsan] disable lsan if wordsize is not 64
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/lsan/lsan_common.h')
-rw-r--r--lib/lsan/lsan_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lsan/lsan_common.h b/lib/lsan/lsan_common.h
index eacff66ac..c0f12e651 100644
--- a/lib/lsan/lsan_common.h
+++ b/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