Fix a bug in a recent refactoring that broke a bunch of stuff.
authorChris Lattner <sabre@nondot.org>
Sat, 12 Aug 2006 07:20:05 +0000 (07:20 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 12 Aug 2006 07:20:05 +0000 (07:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29649 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index 9e54ada35c03f4b29118bdf36ed8719821ae53e8..067063df2590e6dd4873163a3728229013def97f 100644 (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.