aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2013-07-22 12:38:17 +0000
committerSergey Matveev <earthdok@google.com>2013-07-22 12:38:17 +0000
commit9c012165ad184c472692074a3ade2c8515ea7e08 (patch)
treec1dd1831ebb05431f8a0437a4eb3d1b3645f2243 /compiler-rt/lib/lsan/lsan.cc
parent[NVPTX] Use approximate FP ops when unsafe-fp-math is used, and append (diff)
downloadllvm-project-9c012165ad184c472692074a3ade2c8515ea7e08.tar.gz
llvm-project-9c012165ad184c472692074a3ade2c8515ea7e08.tar.bz2
llvm-project-9c012165ad184c472692074a3ade2c8515ea7e08.zip
[lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.
Also move detect_leaks to common flags. llvm-svn: 186821
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.cc')
-rw-r--r--compiler-rt/lib/lsan/lsan.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/lsan/lsan.cc b/compiler-rt/lib/lsan/lsan.cc
index c917bcc750f5..79e593f8b57a 100644
--- a/compiler-rt/lib/lsan/lsan.cc
+++ b/compiler-rt/lib/lsan/lsan.cc
@@ -30,6 +30,7 @@ static void InitializeCommonFlags() {
cf->strip_path_prefix = "";
cf->fast_unwind_on_malloc = true;
cf->malloc_context_size = 30;
+ cf->detect_leaks = true;
ParseCommonFlagsFromString(GetEnv("LSAN_OPTIONS"));
}