diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-18 23:39:47 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-18 23:39:47 +0000 |
commit | ee354fb8b0da2f6d814c2944dec1cac22b45c175 (patch) | |
tree | 1713a97d51c468592702a64e56a2a7a6d41d4a52 /lib/asan/asan_rtl.cc | |
parent | 2a0bb212bbe96125fc0a4f9e5859949ba7360fd9 (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.cc | 2 |
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); } |