summaryrefslogtreecommitdiff
path: root/lib/asan/asan_rtl.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-08-18 23:39:47 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-08-18 23:39:47 +0000
commitee354fb8b0da2f6d814c2944dec1cac22b45c175 (patch)
tree1713a97d51c468592702a64e56a2a7a6d41d4a52 /lib/asan/asan_rtl.cc
parent2a0bb212bbe96125fc0a4f9e5859949ba7360fd9 (diff)
[LSan] Parse common flags from LSAN_OPTIONS even if LSan is combined with
another sanitizer. A user may run both LSan and LSan+ASan. It is weird to pass path to leak suppression file (or other common sanitizer flags, like "verbosity") in "LSAN_OPTIONS" in the first case and in "ASAN_OPTIONS" in the second case. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_rtl.cc')
-rw-r--r--lib/asan/asan_rtl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc
index 2064a6101..c3cc1d3f3 100644
--- a/lib/asan/asan_rtl.cc
+++ b/lib/asan/asan_rtl.cc
@@ -680,7 +680,7 @@ static void AsanInitInternal() {
SanitizerInitializeUnwinder();
#if CAN_SANITIZE_LEAKS
- __lsan::InitCommonLsan();
+ __lsan::InitCommonLsan(false);
if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit) {
Atexit(__lsan::DoLeakCheck);
}