Fix an overly aggressive assertion in getCopyFromPartsVector.
authorNadav Rotem <nrotem@apple.com>
Thu, 2 Jul 2015 23:23:52 +0000 (23:23 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 2 Jul 2015 23:23:52 +0000 (23:23 +0000)
commit6890be345ea145d98dc3a048d3ed3fc1f354e214
tree7c9e8306d7dbb4b4752c1386bd7e1f507a954521
parentc3d9cd3f7380879c517e408e4660ab9e51629367
Fix an overly aggressive assertion in getCopyFromPartsVector.

The assertion in getCopyFromPartsVector assumed that the vector 'part' must
match the type of argument (arguments are potentially split into multiple
parts). However, in some cases the targets return a 'part' of the right size
but with a different type. We already handle this case correctly later on
and generate a bitcast. This commit just makes sure that we are actually
checking the property that we care about.

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