aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-11-27 09:54:10 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-11-27 09:54:10 +0000
commit7bd319cc089c0a65d229b67bda9e29b37bb34fa0 (patch)
tree7498ea31e60b854c6d019134707de4502a84c3c8 /compiler-rt/lib/lsan/lsan.cc
parenttsan: support synchronization by means of linux aio (diff)
downloadllvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.tar.gz
llvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.tar.bz2
llvm-project-7bd319cc089c0a65d229b67bda9e29b37bb34fa0.zip
tsan: fix flags parsing
- running_on_valgrind was not parsed in some contexts - refactor code a bit - add comprehensive tests for flags parsing llvm-svn: 195831
Diffstat (limited to 'compiler-rt/lib/lsan/lsan.cc')
-rw-r--r--compiler-rt/lib/lsan/lsan.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/lsan/lsan.cc b/compiler-rt/lib/lsan/lsan.cc
index 058bbdba3907..43cfcda42ca9 100644
--- a/compiler-rt/lib/lsan/lsan.cc
+++ b/compiler-rt/lib/lsan/lsan.cc
@@ -27,12 +27,12 @@ namespace __lsan {
static void InitializeCommonFlags() {
CommonFlags *cf = common_flags();
- SetCommonFlagDefaults();
+ SetCommonFlagsDefaults(cf);
cf->external_symbolizer_path = GetEnv("LSAN_SYMBOLIZER_PATH");
cf->malloc_context_size = 30;
cf->detect_leaks = true;
- ParseCommonFlagsFromString(GetEnv("LSAN_OPTIONS"));
+ ParseCommonFlagsFromString(cf, GetEnv("LSAN_OPTIONS"));
}
} // namespace __lsan