Don't crash when a glue node contains an internal CopyToReg
authorHal Finkel <hfinkel@anl.gov>
Fri, 24 Feb 2012 17:53:59 +0000 (17:53 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 24 Feb 2012 17:53:59 +0000 (17:53 +0000)
commitf77c03a8599ca354393292bb6c918ea8dab6a21d
treefeae5597ebd2e14a4e1872723e6114fe05d9247c
parente170c76ccdcf9b0343d2d5a2805010ff77b8b56e
Don't crash when a glue node contains an internal CopyToReg

This is necessary to support the existing ppc lowering code for indirect calls.
Fixes PR12071.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
test/CodeGen/PowerPC/ppc64-ind-call.ll [new file with mode: 0644]