Don't forget return void.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 25 Apr 2006 23:03:35 +0000 (23:03 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 25 Apr 2006 23:03:35 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27974 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 0663e81a1b9242a9b6eb47c465d7c490c1957500..a128ae081c48cf4c044db73af0003e06c6047e0e 100644 (file)
@@ -2385,6 +2385,9 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
       break;
     }
   }
+
+  if (RetVals.size() == 0)
+    RetVals.push_back(MVT::isVoid);
   
   // Create the node.
   SDNode *Result = DAG.getNode(ISD::FORMAL_ARGUMENTS, RetVals, Ops).Val;