projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add19dc
)
Don't forget return void.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 25 Apr 2006 23:03:35 +0000
(23:03 +0000)
committer
Evan 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 0663e81a1b9242a9b6eb47c465d7c490c1957500..a128ae081c48cf4c044db73af0003e06c6047e0e 100644
(file)
--- 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;