Fix a bug in a recent refactoring that broke a bunch of stuff.

llvm-svn: 29649
This commit is contained in:
Chris Lattner 2006-08-12 07:20:05 +00:00
parent 167ea3eb5f
commit 095e4ad2ea
1 changed files with 1 additions and 1 deletions

View File

@ -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.