[ASan] Enable instrumentation of dynamic allocas by default.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 22 Oct 2015 20:07:28 +0000 (20:07 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 22 Oct 2015 20:07:28 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/AddressSanitizer.cpp

index 876701367a1823b0d84fa530802a17a516c5672b..5af94ec4bc0a5e66b6399a6d3b806d9f76b3632c 100644 (file)
@@ -194,7 +194,7 @@ static cl::opt<std::string> ClMemoryAccessCallbackPrefix(
     cl::init("__asan_"));
 static cl::opt<bool> ClInstrumentAllocas("asan-instrument-allocas",
                                          cl::desc("instrument dynamic allocas"),
-                                         cl::Hidden, cl::init(false));
+                                         cl::Hidden, cl::init(true));
 static cl::opt<bool> ClSkipPromotableAllocas(
     "asan-skip-promotable-allocas",
     cl::desc("Do not instrument promotable allocas"), cl::Hidden,