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/aapcs-align.cpp | |
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/aapcs-align.cpp')
-rw-r--r-- | clang/test/CodeGen/aapcs-align.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/aapcs-align.cpp b/clang/test/CodeGen/aapcs-align.cpp index bcc4604d742..3d2c7ef6a4d 100644 --- a/clang/test/CodeGen/aapcs-align.cpp +++ b/clang/test/CodeGen/aapcs-align.cpp @@ -95,10 +95,10 @@ void g4() { f4m(1, 2, 3, 4, 5, s); } // CHECK: define void @g4 -// CHECK: call void @f4(i32 1, %struct.SF16* nonnull byval align 8 -// CHECK: call void @f4m(i32 1, i32 2, i32 3, i32 4, i32 5, %struct.SF16* nonnull byval align 8 -// CHECK: declare void @f4(i32, %struct.SF16* byval align 8) -// CHECK: declare void @f4m(i32, i32, i32, i32, i32, %struct.SF16* byval align 8) +// CHECK: call void @f4(i32 1, %struct.SF16* nonnull byval(%struct.SF16) align 8 +// CHECK: call void @f4m(i32 1, i32 2, i32 3, i32 4, i32 5, %struct.SF16* nonnull byval(%struct.SF16) align 8 +// CHECK: declare void @f4(i32, %struct.SF16* byval(%struct.SF16) align 8) +// CHECK: declare void @f4m(i32, i32, i32, i32, i32, %struct.SF16* byval(%struct.SF16) align 8) // Packed structure. struct __attribute__((packed)) P { |