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/CodeGenCXX/wasm-args-returns.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/CodeGenCXX/wasm-args-returns.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/wasm-args-returns.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/wasm-args-returns.cpp b/clang/test/CodeGenCXX/wasm-args-returns.cpp index 506540e86fd..50ebdb96848 100644 --- a/clang/test/CodeGenCXX/wasm-args-returns.cpp +++ b/clang/test/CodeGenCXX/wasm-args-returns.cpp @@ -30,15 +30,15 @@ struct two_fields { double d, e; }; test(two_fields); -// CHECK: define void @_Z7forward10two_fields(%struct.two_fields* noalias nocapture sret %{{.*}}, %struct.two_fields* nocapture readonly byval align 8 %{{.*}}) +// CHECK: define void @_Z7forward10two_fields(%struct.two_fields* noalias nocapture sret %{{.*}}, %struct.two_fields* nocapture readonly byval(%struct.two_fields) align 8 %{{.*}}) // // CHECK: define void @_Z15test_two_fieldsv() // CHECK: %[[tmp:.*]] = alloca %struct.two_fields, align 8 // CHECK: call void @_Z14def_two_fieldsv(%struct.two_fields* nonnull sret %[[tmp]]) -// CHECK: call void @_Z3use10two_fields(%struct.two_fields* nonnull byval align 8 %[[tmp]]) +// CHECK: call void @_Z3use10two_fields(%struct.two_fields* nonnull byval(%struct.two_fields) align 8 %[[tmp]]) // CHECK: ret void // -// CHECK: declare void @_Z3use10two_fields(%struct.two_fields* byval align 8) +// CHECK: declare void @_Z3use10two_fields(%struct.two_fields* byval(%struct.two_fields) align 8) // CHECK: declare void @_Z14def_two_fieldsv(%struct.two_fields* sret) struct copy_ctor { |