[compiler-rt] r303129 - [lsan] Report the missing linker only when the linker is actually missing.
Alex Shlyapnikov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 16:11:01 PDT 2017
Author: alekseyshl
Date: Mon May 15 18:11:01 2017
New Revision: 303129
URL: http://llvm.org/viewvc/llvm-project?rev=303129&view=rev
Log:
[lsan] Report the missing linker only when the linker is actually missing.
Reviewers: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33218
Modified:
compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
Modified: compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common_linux.cc?rev=303129&r1=303128&r2=303129&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common_linux.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common_linux.cc Mon May 15 18:11:01 2017
@@ -62,8 +62,10 @@ void InitializePlatformSpecificModules()
return;
}
}
- VReport(1, "LeakSanitizer: Dynamic linker not found. "
- "TLS will not be handled correctly.\n");
+ if (linker == nullptr) {
+ VReport(1, "LeakSanitizer: Dynamic linker not found. "
+ "TLS will not be handled correctly.\n");
+ }
}
static int ProcessGlobalRegionsCallback(struct dl_phdr_info *info, size_t size,
More information about the llvm-commits
mailing list