Remove failing check from platform specific darwin lsan initializer
authorFrancis Ricci <francisjricci@gmail.com>
Wed, 29 Mar 2017 21:49:13 +0000 (21:49 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Wed, 29 Mar 2017 21:49:13 +0000 (21:49 +0000)
Summary:
We currently don't have any platform specific darwin
lsan modules, don't force failure if they don't exist.

Reviewers: kubamracek

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31473

llvm-svn: 299031

compiler-rt/lib/lsan/lsan_common_mac.cc

index 32d0c97..5fd2b89 100644 (file)
@@ -71,9 +71,9 @@ void SetCurrentThread(u32 tid) { get_tls_val(true)->current_thread_id = tid; }
 
 AllocatorCache *GetAllocatorCache() { return &get_tls_val(true)->cache; }
 
-void InitializePlatformSpecificModules() {
-  CHECK(0 && "unimplemented");
-}
+// Required on Linux for initialization of TLS behavior, but should not be
+// required on Darwin.
+void InitializePlatformSpecificModules() {}
 
 // Scans global variables for heap pointers.
 void ProcessGlobalRegions(Frontier *frontier) {