summaryrefslogtreecommitdiff
path: root/lib/CodeGen
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
commit3b0d286d0085fbf8314d9f5510c2f78558ab5dea (patch)
tree702cb54298bf1520978577d1e94f2e6c991c6466 /lib/CodeGen
parentadd19dc20a519295deb57bd5a89014d80c540930 (diff)
downloadllvm-3b0d286d0085fbf8314d9f5510c2f78558ab5dea.tar.gz
llvm-3b0d286d0085fbf8314d9f5510c2f78558ab5dea.tar.bz2
llvm-3b0d286d0085fbf8314d9f5510c2f78558ab5dea.tar.xz
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')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
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;