summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/ThreadSanitizer
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-12-05 15:03:02 +0000
committerKostya Serebryany <kcc@google.com>2013-12-05 15:03:02 +0000
commit2460c3fc733a618c65a032065f9e45a2232b2e3e (patch)
treea2a8d2bd272709adae7cbe45ad9085bdbc3c87b4 /llvm/test/Instrumentation/ThreadSanitizer
parent5ca3de6e91fb32ff71c90d3af25cfcbb538a49c3 (diff)
downloadbcm5719-llvm-2460c3fc733a618c65a032065f9e45a2232b2e3e.tar.gz
bcm5719-llvm-2460c3fc733a618c65a032065f9e45a2232b2e3e.zip
[tsan] fix PR18146: sometimes a variable written into vptr could have an integer type (after other optimizations)
llvm-svn: 196507
Diffstat (limited to 'llvm/test/Instrumentation/ThreadSanitizer')
-rw-r--r--llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll b/llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll
index 46650040540..83d28b6ee21 100644
--- a/llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll
+++ b/llvm/test/Instrumentation/ThreadSanitizer/vptr_update.ll
@@ -11,6 +11,16 @@ entry:
ret void
}
+define void @FooInt(i64* nocapture %a, i64 %b) nounwind uwtable sanitize_thread {
+entry:
+; CHECK-LABEL: @FooInt
+; CHECK: call void @__tsan_vptr_update
+; CHECK: ret void
+ store i64 %b, i64* %a, align 8, !tbaa !0
+ ret void
+}
+
+
declare i32 @Func1()
declare i32 @Func2()
OpenPOWER on IntegriCloud