forked from OSchip/llvm-project
[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:
parent
be9a53fec6
commit
300d29a75d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue