[compiler-rt] r263985 - [sanitizier] initializing common flags.
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 13:53:21 PDT 2016
Author: aizatsky
Date: Mon Mar 21 15:53:20 2016
New Revision: 263985
URL: http://llvm.org/viewvc/llvm-project?rev=263985&view=rev
Log:
[sanitizier] initializing common flags.
Summary: Without SetDefaults() CommonFlags contain garbage.
Differential Revision: http://reviews.llvm.org/D18326
Modified:
compiler-rt/trunk/lib/asan/asan_activation.cc
Modified: compiler-rt/trunk/lib/asan/asan_activation.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_activation.cc?rev=263985&r1=263984&r2=263985&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_activation.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_activation.cc Mon Mar 21 15:53:20 2016
@@ -47,6 +47,7 @@ static struct AsanDeactivatedFlags {
FlagParser parser;
RegisterActivationFlags(&parser, &f, &cf);
+ cf.SetDefaults();
// Copy the current activation flags.
allocator_options.CopyTo(&f, &cf);
cf.malloc_context_size = malloc_context_size;
More information about the llvm-commits
mailing list