diff options
author | Tim Northover <tnorthover@apple.com> | 2019-06-05 21:12:14 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2019-06-05 21:12:14 +0000 |
commit | c46827c7eda30cd0bc3e70d08670c8dc39fe6166 (patch) | |
tree | dc817e1eb1cc273a480022199190880af8b5d7cf /clang/test/CodeGen/ppc64-align-struct.c | |
parent | 9423f5ef56d23c099987ceec2a140fe9efa47934 (diff) | |
download | bcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.tar.gz bcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.zip |
LLVM IR: Generate new-style byval-with-Type from Clang
LLVM IR recently added a Type parameter to the byval Attribute, so that
when pointers become opaque and no longer have an element type the
information will still be present in IR.
For now the Type parameter is optional (which is why Clang didn't need
this change at the time), but it will become mandatory soon.
llvm-svn: 362652
Diffstat (limited to 'clang/test/CodeGen/ppc64-align-struct.c')
-rw-r--r-- | clang/test/CodeGen/ppc64-align-struct.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/ppc64-align-struct.c b/clang/test/CodeGen/ppc64-align-struct.c index 5e2dc8b2eb8..e6ca3bb6dfa 100644 --- a/clang/test/CodeGen/ppc64-align-struct.c +++ b/clang/test/CodeGen/ppc64-align-struct.c @@ -30,18 +30,18 @@ void test4 (int x, struct test4 y) { } -// CHECK: define void @test5(i32 signext %x, %struct.test5* byval align 8 %y) +// CHECK: define void @test5(i32 signext %x, %struct.test5* byval(%struct.test5) align 8 %y) void test5 (int x, struct test5 y) { } -// CHECK: define void @test6(i32 signext %x, %struct.test6* byval align 16 %y) +// CHECK: define void @test6(i32 signext %x, %struct.test6* byval(%struct.test6) align 16 %y) void test6 (int x, struct test6 y) { } // This case requires run-time realignment of the incoming struct -// CHECK-LABEL: define void @test7(i32 signext %x, %struct.test7* byval align 16) +// CHECK-LABEL: define void @test7(i32 signext %x, %struct.test7* byval(%struct.test7) align 16) // CHECK: %y = alloca %struct.test7, align 32 // CHECK: call void @llvm.memcpy.p0i8.p0i8.i64 void test7 (int x, struct test7 y) |