[PATCH] D33218: [lsan] Report the missing linker only when the linker is actually missing.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 16:24:30 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL303129: [lsan] Report the missing linker only when the linker is actually missing. (authored by alekseyshl).

Changed prior to commit:
  https://reviews.llvm.org/D33218?vs=99072&id=99082#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33218

Files:
  compiler-rt/trunk/lib/lsan/lsan_common_linux.cc


Index: compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
===================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
+++ compiler-rt/trunk/lib/lsan/lsan_common_linux.cc
@@ -62,8 +62,10 @@
       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,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33218.99082.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/5142afde/attachment.bin>


More information about the llvm-commits mailing list