[sanitizer] allow -fsanitize-coverage=N w/ -fsanitize=leak, compiler-rt part

llvm-svn: 224464
This commit is contained in:
Kostya Serebryany 2014-12-17 21:51:07 +00:00
parent fea4fb404e
commit 4de56ef736
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ extern "C" void __lsan_init() {
if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit)
Atexit(DoLeakCheck);
if (common_flags()->coverage) {
__sanitizer_cov_init();
Atexit(__sanitizer_cov_dump);
}
lsan_inited = true;
lsan_init_is_running = false;
}