From 64abf5b441a18c6678853a648ccb59e5a7a39296 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 5 Dec 2013 15:03:02 +0000 Subject: [tsan] fix PR18146: sometimes a variable written into vptr could have an integer type (after other optimizations) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196507 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Instrumentation/ThreadSanitizer/vptr_update.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/Instrumentation') diff --git a/test/Instrumentation/ThreadSanitizer/vptr_update.ll b/test/Instrumentation/ThreadSanitizer/vptr_update.ll index 4665004054..83d28b6ee2 100644 --- a/test/Instrumentation/ThreadSanitizer/vptr_update.ll +++ b/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() -- cgit v1.2.3