r362667 - [WebAssembly] Support Leak Sanitizer on Emscripten
Thomas Lively via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 18:38:13 PDT 2019
Author: tlively
Date: Wed Jun 5 18:38:12 2019
New Revision: 362667
URL: http://llvm.org/viewvc/llvm-project?rev=362667&view=rev
Log:
[WebAssembly] Support Leak Sanitizer on Emscripten
Summary:
LSan is currently being ported to Emscripten and mostly works.
Enabling the support in upstream would simplify testing.
Patch by Guanzhong Chen.
Reviewers: tlively, aheejin
Reviewed By: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, sunfish, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62830
Modified:
cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp?rev=362667&r1=362666&r2=362667&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/WebAssembly.cpp Wed Jun 5 18:38:12 2019
@@ -211,7 +211,7 @@ void WebAssembly::AddCXXStdlibLibArgs(co
SanitizerMask WebAssembly::getSupportedSanitizers() const {
SanitizerMask Res = ToolChain::getSupportedSanitizers();
if (getTriple().isOSEmscripten()) {
- Res |= SanitizerKind::Vptr;
+ Res |= SanitizerKind::Vptr | SanitizerKind::Leak;
}
return Res;
}
More information about the cfe-commits
mailing list