From: Alex Shlyapnikov Date: Mon, 15 May 2017 23:11:01 +0000 (+0000) Subject: [lsan] Report the missing linker only when the linker is actually missing. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbb1fdf350bcac9b7b8618e431dfe0b5309fbefe;p=platform%2Fupstream%2Fllvm.git [lsan] Report the missing linker only when the linker is actually missing. Reviewers: eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D33218 llvm-svn: 303129 --- diff --git a/compiler-rt/lib/lsan/lsan_common_linux.cc b/compiler-rt/lib/lsan/lsan_common_linux.cc index fadd026..c903be4 100644 --- a/compiler-rt/lib/lsan/lsan_common_linux.cc +++ b/compiler-rt/lib/lsan/lsan_common_linux.cc @@ -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,