For PR1142:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 29 Jan 2007 19:07:18 +0000 (19:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 29 Jan 2007 19:07:18 +0000 (19:07 +0000)
commitf049c6712d77be98c9b448cf8b696b7bfffee85f
treef20724e5a680300e77cebfd1647ad1d22bcd0a5c
parent072200c36dd96b94e772029fd72edf9fa120c467
For PR1142:
When an unresolved definition is found, check to see if it is only unresolved
because the csretcc was upgraded to the sret param attribute. Such changes
change the function type and lead to unresolved definitions. In such cases, just
cast the function to the type expected by the CallInst. That is, cast to the
version of the function that has the sret param attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33623 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-upgrade/UpgradeParser.y