[PATCH] D31473: Remove failing check from platform specific darwin lsan initializer

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 11:17:36 PDT 2017


fjricci created this revision.

We currently don't have any platform specific darwin
lsan modules, don't force failure if they don't exist.


https://reviews.llvm.org/D31473

Files:
  lib/lsan/lsan_common_mac.cc


Index: lib/lsan/lsan_common_mac.cc
===================================================================
--- lib/lsan/lsan_common_mac.cc
+++ lib/lsan/lsan_common_mac.cc
@@ -71,9 +71,9 @@
 
 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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31473.93390.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170329/914d900e/attachment.bin>


More information about the llvm-commits mailing list