r313319 - [MSan] Specify use-after-dtor default value in header.
Matt Morehouse via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 14 16:53:57 PDT 2017
Author: morehouse
Date: Thu Sep 14 16:53:56 2017
New Revision: 313319
URL: http://llvm.org/viewvc/llvm-project?rev=313319&view=rev
Log:
[MSan] Specify use-after-dtor default value in header.
Modified:
cfe/trunk/lib/Driver/SanitizerArgs.cpp
Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/SanitizerArgs.cpp?rev=313319&r1=313318&r2=313319&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/SanitizerArgs.cpp (original)
+++ cfe/trunk/lib/Driver/SanitizerArgs.cpp Thu Sep 14 16:53:56 2017
@@ -491,9 +491,11 @@ SanitizerArgs::SanitizerArgs(const ToolC
MsanUseAfterDtor =
Args.hasFlag(options::OPT_fsanitize_memory_use_after_dtor,
options::OPT_fno_sanitize_memory_use_after_dtor,
- false);
+ MsanUseAfterDtor);
NeedPIE |= !(TC.getTriple().isOSLinux() &&
TC.getTriple().getArch() == llvm::Triple::x86_64);
+ } else {
+ MsanUseAfterDtor = false;
}
if (AllAddedKinds & Thread) {
More information about the cfe-commits
mailing list