summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-25 23:03:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-25 23:03:35 +0000
commit9618df1190455cee6f2ab40459ffdd71228484f6 (patch)
tree035568af6844ecec7205eb741350eb83267db695 /llvm/lib/CodeGen/SelectionDAG
parent4530327c046080f02fd5d50eb86eee965d10adf3 (diff)
downloadbcm5719-llvm-9618df1190455cee6f2ab40459ffdd71228484f6.tar.gz
bcm5719-llvm-9618df1190455cee6f2ab40459ffdd71228484f6.zip
Don't forget return void.
llvm-svn: 27974
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 0663e81a1b9..a128ae081c4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud