diff options
author | Chris Lattner <sabre@nondot.org> | 2011-05-22 23:35:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-05-22 23:35:00 +0000 |
commit | de92d739ba0ef42a5a7dcfd6e170329549d0716b (patch) | |
tree | ffb78fa8d8c08732ff1aa3d77291944ca885e2c9 /test/CodeGen/struct-passing.c | |
parent | 855d227967f8332237f1f1cf8eb63a1e22d8be05 (diff) |
make the x86-32 backend specify a byval alignment, even when the
code generator will do it. With this patch, clang compiles the example
in PR9794 to not have an alloca temporary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct-passing.c')
-rw-r--r-- | test/CodeGen/struct-passing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/struct-passing.c b/test/CodeGen/struct-passing.c index 3e173be651..8e5c0adcfc 100644 --- a/test/CodeGen/struct-passing.c +++ b/test/CodeGen/struct-passing.c @@ -20,5 +20,5 @@ void *ps[] = { f0, f1, f2, f3, f4, f5 }; // CHECK: declare i32 @f1() readonly // CHECK: declare void @f2({{.*}} sret) // CHECK: declare void @f3({{.*}} sret) -// CHECK: declare void @f4({{.*}} byval) -// CHECK: declare void @f5({{.*}} byval) +// CHECK: declare void @f4({{.*}} byval align 4) +// CHECK: declare void @f5({{.*}} byval align 4) |