From: Evgeniy Stepanov Date: Tue, 22 Jan 2013 13:26:53 +0000 (+0000) Subject: [msan] Export the value of msan-keep-going flag for the runtime. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=be0008a4df72bf9da3246707cdec2766ace75d32;p=oota-llvm.git [msan] Export the value of msan-keep-going flag for the runtime. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 8bb8115012a..20b6de2506d 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -361,6 +361,9 @@ bool MemorySanitizer::doInitialization(Module &M) { new GlobalVariable(M, IRB.getInt32Ty(), true, GlobalValue::WeakODRLinkage, IRB.getInt32(TrackOrigins), "__msan_track_origins"); + new GlobalVariable(M, IRB.getInt32Ty(), true, GlobalValue::WeakODRLinkage, + IRB.getInt32(ClKeepGoing), "__msan_keep_going"); + return true; }