From 21d0d531e58b2395e2d6e735e6460b22ba7fd5b9 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 5 Dec 2017 13:40:01 +0000 Subject: [PATCH] [XRay][compiler-rt] Use __sanitizer::Atexit() instead of atexit() Follow-up to D40828. llvm-svn: 319764 --- compiler-rt/lib/xray/xray_inmemory_log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/xray/xray_inmemory_log.cc b/compiler-rt/lib/xray/xray_inmemory_log.cc index b70d6ecd05ac..a27ffbcbd12e 100644 --- a/compiler-rt/lib/xray/xray_inmemory_log.cc +++ b/compiler-rt/lib/xray/xray_inmemory_log.cc @@ -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; }(); }