[compiler-rt] r299031 - Remove failing check from platform specific darwin lsan initializer
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 29 14:49:14 PDT 2017
Author: fjricci
Date: Wed Mar 29 16:49:13 2017
New Revision: 299031
URL: http://llvm.org/viewvc/llvm-project?rev=299031&view=rev
Log:
Remove failing check from platform specific darwin lsan initializer
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
Modified:
compiler-rt/trunk/lib/lsan/lsan_common_mac.cc
Modified: compiler-rt/trunk/lib/lsan/lsan_common_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common_mac.cc?rev=299031&r1=299030&r2=299031&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common_mac.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common_mac.cc Wed Mar 29 16:49:13 2017
@@ -71,9 +71,9 @@ void SetCurrentThread(u32 tid) { get_tls
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) {
More information about the llvm-commits
mailing list