summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-14 12:38:58 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-14 12:38:58 +0000
commitb4ba5e68e1ac00bfb93572a1f271673deefd7ea9 (patch)
treef9383705bcb098870e33735348965217319141fe /include
parent41b55f5556d1332934cefa7c14862313eb87fa29 (diff)
downloadllvm-b4ba5e68e1ac00bfb93572a1f271673deefd7ea9.tar.gz
llvm-b4ba5e68e1ac00bfb93572a1f271673deefd7ea9.tar.bz2
llvm-b4ba5e68e1ac00bfb93572a1f271673deefd7ea9.tar.xz
[ASan] emit instrumentation for initialization order checking by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Instrumentation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index b1db325d83..4aae200dd0 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -60,11 +60,11 @@ ModulePass *createGCOVProfilerPass(const GCOVOptions &Options =
// Insert AddressSanitizer (address sanity checking) instrumentation
FunctionPass *createAddressSanitizerFunctionPass(
- bool CheckInitOrder = false, bool CheckUseAfterReturn = false,
+ bool CheckInitOrder = true, bool CheckUseAfterReturn = false,
bool CheckLifetime = false, StringRef BlacklistFile = StringRef(),
bool ZeroBaseShadow = false);
ModulePass *createAddressSanitizerModulePass(
- bool CheckInitOrder = false, StringRef BlacklistFile = StringRef(),
+ bool CheckInitOrder = true, StringRef BlacklistFile = StringRef(),
bool ZeroBaseShadow = false);
// Insert MemorySanitizer instrumentation (detection of uninitialized reads)