When inlining a functino with a byval argument, make an explicit
authorChris Lattner <sabre@nondot.org>
Fri, 11 Jan 2008 06:09:30 +0000 (06:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Jan 2008 06:09:30 +0000 (06:09 +0000)
commitc93adca35856d0eaae088e52ba30cfefbd7ad910
tree202f275ac185a7c97889a7d211f30b34f3b680ec
parent681d2b8266fb05695cb4f5942573bc8681e3e3b7
When inlining a functino with a byval argument, make an explicit
copy of it in case the callee modifies the struct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45853 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/byval.ll [new file with mode: 0644]