From c46827c7eda30cd0bc3e70d08670c8dc39fe6166 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 5 Jun 2019 21:12:14 +0000 Subject: 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 --- clang/test/CodeGen/struct-passing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGen/struct-passing.c') diff --git a/clang/test/CodeGen/struct-passing.c b/clang/test/CodeGen/struct-passing.c index d28fee213eb..80847b9fea6 100644 --- a/clang/test/CodeGen/struct-passing.c +++ b/clang/test/CodeGen/struct-passing.c @@ -20,8 +20,8 @@ void *ps[] = { f0, f1, f2, f3, f4, f5 }; // CHECK: declare i32 @f1() [[RO:#[0-9]+]] // CHECK: declare void @f2({{.*}} sret) // CHECK: declare void @f3({{.*}} sret) -// CHECK: declare void @f4({{.*}} byval align 4) -// CHECK: declare void @f5({{.*}} byval align 4) +// CHECK: declare void @f4({{.*}} byval({{.*}}) align 4) +// CHECK: declare void @f5({{.*}} byval({{.*}}) align 4) // CHECK: attributes [[RN]] = { nounwind readnone{{.*}} } // CHECK: attributes [[RO]] = { nounwind readonly{{.*}} } -- cgit v1.2.3