When checking for sret-demotion, it needs to use legal types. When using the return...
authorKenneth Uildriks <kennethuil@gmail.com>
Sat, 16 Jan 2010 23:37:33 +0000 (23:37 +0000)
committerKenneth Uildriks <kennethuil@gmail.com>
Sat, 16 Jan 2010 23:37:33 +0000 (23:37 +0000)
commit93ae407ec3d300805d42a6e2f81ab8c4538eb494
tree8633dc840aa7b8f85c8a39c012fb901231f59c78
parentdbc130f5927d6055211eb30defb25a6db609454e
When checking for sret-demotion, it needs to use legal types.  When using the return value of an sret-demoted call, it needs to use possibly illegal types that match the declared Type of the callee.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93667 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/bigstructret2.ll [new file with mode: 0644]