From fb8b6179b308d48cc41430de90763b6616b84542 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Tue, 5 Dec 2017 13:40:01 +0000 Subject: [XRay][compiler-rt] Use __sanitizer::Atexit() instead of atexit() Follow-up to D40828. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@319764 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/xray/xray_inmemory_log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/xray/xray_inmemory_log.cc b/lib/xray/xray_inmemory_log.cc index b70d6ecd0..a27ffbcbd 100644 --- a/lib/xray/xray_inmemory_log.cc +++ b/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; }(); } -- cgit v1.2.3