forked from OSchip/llvm-project
Fix a bug in a recent refactoring that broke a bunch of stuff.
llvm-svn: 29649
This commit is contained in:
parent
167ea3eb5f
commit
095e4ad2ea
|
@ -1216,7 +1216,7 @@ static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG) {
|
|||
NodeTys.push_back(MVT::Other);
|
||||
|
||||
// If the function returns void, just return the chain.
|
||||
if (NumResults == 1)
|
||||
if (NumResults == 0)
|
||||
return Chain;
|
||||
|
||||
// Otherwise, merge everything together with a MERGE_VALUES node.
|
||||
|
|
Loading…
Reference in New Issue