Skip to content

Commit

Permalink
[WebAssembly] Support Leak Sanitizer on Emscripten
Browse files Browse the repository at this point in the history
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

llvm-svn: 362667
  • Loading branch information
tlively committed Jun 6, 2019
1 parent c37ff0d commit 5e7ca75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/WebAssembly.cpp
Expand Up @@ -211,7 +211,7 @@ void WebAssembly::AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
SanitizerMask WebAssembly::getSupportedSanitizers() const {
SanitizerMask Res = ToolChain::getSupportedSanitizers();
if (getTriple().isOSEmscripten()) {
Res |= SanitizerKind::Vptr;
Res |= SanitizerKind::Vptr | SanitizerKind::Leak;
}
return Res;
}
Expand Down

0 comments on commit 5e7ca75

Please sign in to comment.