diff options
Diffstat (limited to 'test/Instrumentation/ThreadSanitizer/read_from_global.ll')
-rw-r--r-- | test/Instrumentation/ThreadSanitizer/read_from_global.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Instrumentation/ThreadSanitizer/read_from_global.ll b/test/Instrumentation/ThreadSanitizer/read_from_global.ll index 037dd56..76ee50c 100644 --- a/test/Instrumentation/ThreadSanitizer/read_from_global.ll +++ b/test/Instrumentation/ThreadSanitizer/read_from_global.ll @@ -6,7 +6,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 @const_global = external constant i32 define i32 @read_from_const_global() nounwind uwtable sanitize_thread readnone { entry: - %0 = load i32* @const_global, align 4 + %0 = load i32, i32* @const_global, align 4 ret i32 %0 } ; CHECK: define i32 @read_from_const_global @@ -16,7 +16,7 @@ entry: @non_const_global = global i32 0, align 4 define i32 @read_from_non_const_global() nounwind uwtable sanitize_thread readonly { entry: - %0 = load i32* @non_const_global, align 4 + %0 = load i32, i32* @non_const_global, align 4 ret i32 %0 } @@ -28,8 +28,8 @@ entry: define i32 @read_from_const_global_array(i32 %idx) nounwind uwtable sanitize_thread readnone { entry: %idxprom = sext i32 %idx to i64 - %arrayidx = getelementptr inbounds [10 x i32]* @const_global_array, i64 0, i64 %idxprom - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [10 x i32], [10 x i32]* @const_global_array, i64 0, i64 %idxprom + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 } @@ -41,8 +41,8 @@ entry: define void @call_virtual_func(%struct.Foo* %f) uwtable sanitize_thread { entry: %0 = bitcast %struct.Foo* %f to void (%struct.Foo*)*** - %vtable = load void (%struct.Foo*)*** %0, align 8, !tbaa !2 - %1 = load void (%struct.Foo*)** %vtable, align 8 + %vtable = load void (%struct.Foo*)**, void (%struct.Foo*)*** %0, align 8, !tbaa !2 + %1 = load void (%struct.Foo*)*, void (%struct.Foo*)** %vtable, align 8 call void %1(%struct.Foo* %f) ret void } |