forked from OSchip/llvm-project
[XRay][compiler-rt] Use __sanitizer::Atexit() instead of atexit()
Follow-up to D40828. llvm-svn: 319764
This commit is contained in:
parent
bf77c23576
commit
21d0d531e5
|
@ -459,7 +459,7 @@ bool basicLogDynamicInitializer() XRAY_NEVER_INSTRUMENT {
|
|||
sizeof(BasicLoggingOptions));
|
||||
static auto UNUSED Once = [] {
|
||||
static auto UNUSED &TLD = getThreadLocalData();
|
||||
atexit(+[] { TLDDestructor(&TLD); });
|
||||
__sanitizer::Atexit(+[] { TLDDestructor(&TLD); });
|
||||
return false;
|
||||
}();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue