Properly provide alignment of 'byval' arguments down to llvm.
authorJames Y Knight <jyknight@google.com>
Fri, 21 Aug 2015 18:19:06 +0000 (18:19 +0000)
committerJames Y Knight <jyknight@google.com>
Fri, 21 Aug 2015 18:19:06 +0000 (18:19 +0000)
commit7160857da377e50d42b7d892844428c78338c696
treea9f77aaa231eb3e173ae96e05b9c708eba858a64
parent1e3dc527ea6d548bd776896d6fe73a91754d762e
Properly provide alignment of 'byval' arguments down to llvm.

This is important in the case that the LLVM-inferred llvm-struct
alignment is not the same as the clang-known C-struct alignment.

Differential Revision: http://reviews.llvm.org/D12243

llvm-svn: 245719
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/le32-arguments.c
clang/test/CodeGen/nvptx-abi.c
clang/test/CodeGen/sparc-arguments.c [new file with mode: 0644]