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/transparent-union.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/transparent-union.c')
-rw-r--r-- | test/CodeGen/transparent-union.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/transparent-union.c b/test/CodeGen/transparent-union.c index 97a731855c..afdb3d6090 100644 --- a/test/CodeGen/transparent-union.c +++ b/test/CodeGen/transparent-union.c @@ -11,7 +11,7 @@ typedef union { void f0(transp_t0 obj); // CHECK: define void @f1_0(i32* %a0) -// CHECK: call void @f0(%union.transp_t0* byval %{{.*}}) +// CHECK: call void @f0(%union.transp_t0* byval align 4 %{{.*}}) // CHECK: call void %{{.*}}(i8* %{{[a-z0-9]*}}) // CHECK: } void f1_0(int *a0) { |