We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cb8aeb commit 42853d0Copy full SHA for 42853d0
clang/test/CodeGen/tbaa-struct-relaxed-aliasing-with-tsan.cpp
@@ -0,0 +1,26 @@
1
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - -O1 -relaxed-aliasing -fsanitize=thread -disable-llvm-optzns %s | \
2
+// RUN: FileCheck %s
3
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -new-struct-path-tbaa \
4
+// RUN: -emit-llvm -o - -O1 -relaxed-aliasing -fsanitize=thread -disable-llvm-optzns %s | \
5
6
+//
7
+// Check that we do not create tbaa for instructions generated for copies.
8
+// FIXME: !tbaa.struct is generated with null node as tag.
9
+
10
+// CHECK: !tbaa.struct
11
+// CHECK-NOT: !tbaa
12
13
+struct A {
14
+ short s;
15
+ int i;
16
+ char c;
17
+ int j;
18
+};
19
20
+void copyStruct(A *a1, A *a2) {
21
+ *a1 = *a2;
22
+}
23
24
+void copyInt(int *a, int *b) {
25
+ *a = *b;
26
0 commit comments