[PATCH] D35443: Enable 64-bit Darwin LeakSanitizer by default on AddressSanitizer builds

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 15:53:11 PDT 2017


kubamracek added a comment.

In https://reviews.llvm.org/D35443#812065, @fjricci wrote:

> I ran bootstrapped check-clang with -fsanitize=address and this patch, all tests passed. (Verified that it was running LSan as well by making sure tests failed with a CHECK(0) in DoLeakCheck()).
>
> Unfortunately, I don't think it's currently possible to run this on swift. Darwin LSan requires clang-5, and the master-next branch does not currently build due to some KPs with debug info.


I see.  But mostly it's important that LSan works against Swift programs/apps rather than the compiler.  How about taking some existing swift binaries or building some swift app with Xcode 8 or Xcode 9 (in beta now) and just using LSan against an already built binary.  Since LSan is a runtime-only tool, that should work, right?


https://reviews.llvm.org/D35443





More information about the llvm-commits mailing list