[compiler-rt] r319764 - [XRay][compiler-rt] Use __sanitizer::Atexit() instead of atexit()

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 05:40:02 PST 2017


Author: dberris
Date: Tue Dec  5 05:40:01 2017
New Revision: 319764

URL: http://llvm.org/viewvc/llvm-project?rev=319764&view=rev
Log:
[XRay][compiler-rt] Use __sanitizer::Atexit() instead of atexit()

Follow-up to D40828.

Modified:
    compiler-rt/trunk/lib/xray/xray_inmemory_log.cc

Modified: compiler-rt/trunk/lib/xray/xray_inmemory_log.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_inmemory_log.cc?rev=319764&r1=319763&r2=319764&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_inmemory_log.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_inmemory_log.cc Tue Dec  5 05:40:01 2017
@@ -459,7 +459,7 @@ bool basicLogDynamicInitializer() XRAY_N
                     sizeof(BasicLoggingOptions));
     static auto UNUSED Once = [] {
       static auto UNUSED &TLD = getThreadLocalData();
-      atexit(+[] { TLDDestructor(&TLD); });
+      __sanitizer::Atexit(+[] { TLDDestructor(&TLD); });
       return false;
     }();
   }




More information about the llvm-commits mailing list