diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-04-25 23:03:35 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-04-25 23:03:35 +0000 |
commit | 3b0d286d0085fbf8314d9f5510c2f78558ab5dea (patch) | |
tree | 702cb54298bf1520978577d1e94f2e6c991c6466 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | add19dc20a519295deb57bd5a89014d80c540930 (diff) |
Don't forget return void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 0663e81a1b..a128ae081c 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; |