summaryrefslogtreecommitdiff
path: root/test/Instrumentation/MemorySanitizer
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-12-05 12:49:41 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2012-12-05 12:49:41 +0000
commit61cac0619a0f02107d97ae6367f5af38bb4c628f (patch)
treec216ba18670f08621c4156e771f63e0bbeb8c618 /test/Instrumentation/MemorySanitizer
parent226e0e6264dc15ea8f26261a813eae3c17987b3b (diff)
downloadllvm-61cac0619a0f02107d97ae6367f5af38bb4c628f.tar.gz
llvm-61cac0619a0f02107d97ae6367f5af38bb4c628f.tar.bz2
llvm-61cac0619a0f02107d97ae6367f5af38bb4c628f.tar.xz
[msan] Change linkage type of __msan_track_origins.
LinkOnceODRLinkage globals may be removed in GlobalOpt if not used in the current module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Instrumentation/MemorySanitizer')
-rw-r--r--test/Instrumentation/MemorySanitizer/msan_basic.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Instrumentation/MemorySanitizer/msan_basic.ll b/test/Instrumentation/MemorySanitizer/msan_basic.ll
index acad4ba6bb..05cdaa7d6f 100644
--- a/test/Instrumentation/MemorySanitizer/msan_basic.ll
+++ b/test/Instrumentation/MemorySanitizer/msan_basic.ll
@@ -4,6 +4,9 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
; Check the presence of __msan_init
; CHECK: @llvm.global_ctors {{.*}} @__msan_init
+; Check the presence and the linkage type of __msan_track_origins
+; CHECK: @__msan_track_origins = weak_odr constant i32 0
+
; load followed by cmp: check that we load the shadow and call __msan_warning.
define void @LoadAndCmp(i32* nocapture %a) nounwind uwtable {
entry: