[asan] Disable __sanitizer_cov_dump registration on Windows.

Looks like we can't use atexit() during ASan initialization on Windows.

llvm-svn: 224839
This commit is contained in:
Evgeniy Stepanov 2014-12-25 15:11:00 +00:00
parent be9a53fec6
commit 300d29a75d
1 changed files with 2 additions and 0 deletions

View File

@ -590,7 +590,9 @@ void InitializeCoverage(bool enabled, const char *dir) {
coverage_enabled = enabled;
coverage_dir = dir;
if (enabled) coverage_data.Init();
#if !SANITIZER_WINDOWS
if (!common_flags()->coverage_direct) Atexit(__sanitizer_cov_dump);
#endif
}
void ReInitializeCoverage(bool enabled, const char *dir) {