fix PR8769, a miscompilation by inliner when inlining a function with a byval
authorChris Lattner <sabre@nondot.org>
Mon, 20 Dec 2010 07:45:28 +0000 (07:45 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Dec 2010 07:45:28 +0000 (07:45 +0000)
commit018fb767b91d5ec396d56a3e61bd124918b59fa1
tree404132f6b16bfc87e1ff7331587545f99a4d6a74
parent572335915f5d7306e319598803742473b0bd3525
fix PR8769, a miscompilation by inliner when inlining a function with a byval
argument.  The generated alloca has to have at least the alignment of the
byval, if not, the client may be making assumptions that the new alloca won't
satisfy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/byval.ll