From: Evan Cheng Date: Tue, 25 Apr 2006 23:03:35 +0000 (+0000) Subject: Don't forget return void. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b0d286d0085fbf8314d9f5510c2f78558ab5dea;p=oota-llvm.git Don't forget return void. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 0663e81a1b9..a128ae081c4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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;