diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-29 02:00:04 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-09-29 02:00:04 +0000 |
commit | 436e825809519a7ff6d99c3177b7f64ab96a057c (patch) | |
tree | 525ce56a136dd1c05bebf9a52272d85eceb4e830 /test/CodeGen/tbaa-struct.cpp | |
parent | ce6644bc1e921833f9b3c10cf7d4a0b78e8d5dc9 (diff) |
clang/test/CodeGen/tbaa-struct.cpp: Fix. Be aware of 32 bit pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/tbaa-struct.cpp')
-rw-r--r-- | test/CodeGen/tbaa-struct.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/tbaa-struct.cpp b/test/CodeGen/tbaa-struct.cpp index 6bff3370bf..8b30aa0a49 100644 --- a/test/CodeGen/tbaa-struct.cpp +++ b/test/CodeGen/tbaa-struct.cpp @@ -12,5 +12,6 @@ void copy(struct A *a, struct A *b) { *a = *b; } -// CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.*}}, i8* %{{.*}}, i64 16, i32 4, i1 false), !tbaa.struct [[TS:!.*]] +// CHECK: target datalayout = "{{.*}}p:[[P:64|32]] +// CHECK: call void @llvm.memcpy.p0i8.p0i8.i[[P]](i8* %{{.*}}, i8* %{{.*}}, i[[P]] 16, i32 4, i1 false), !tbaa.struct [[TS:!.*]] // CHECK: [[TS]] = metadata !{i64 0, i64 2, metadata !{{.*}}, i64 4, i64 4, metadata !{{.*}}, i64 8, i64 1, metadata !{{.*}}, i64 12, i64 4, metadata !{{.*}}} |