[PATCH] D29077: [lsan] Enable LSan for x86 Linux.

Maxim Ostapenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 24 04:44:53 PST 2017


m.ostapenko created this revision.
m.ostapenko added a project: Sanitizers.

This is a missed part of https://reviews.llvm.org/D28609. Enable LSan for x86 Linux in clang driver.


Repository:
  rL LLVM

https://reviews.llvm.org/D29077

Files:
  lib/Driver/ToolChains.cpp


Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -4730,7 +4730,7 @@
   Res |= SanitizerKind::SafeStack;
   if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::DataFlow;
-  if (IsX86_64 || IsMIPS64 || IsAArch64)
+  if (IsX86_64 || IsMIPS64 || IsAArch64 || IsX86)
     Res |= SanitizerKind::Leak;
   if (IsX86_64 || IsMIPS64 || IsAArch64 || IsPowerPC64)
     Res |= SanitizerKind::Thread;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29077.85565.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170124/974ea094/attachment.bin>


More information about the cfe-commits mailing list