aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-06 15:07:58 +0000
committerDan Gohman <gohman@apple.com>2009-08-06 15:07:58 +0000
commitaeee93f666ef04039e6bed630027c6967d1fe021 (patch)
tree7d3c316cb81f6cdcb3729a1ebf19d953cb50b8b3 /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
parentbad20c3463002c75378071e158db4066b7c33cba (diff)
downloadexternal_llvm-aeee93f666ef04039e6bed630027c6967d1fe021.zip
external_llvm-aeee93f666ef04039e6bed630027c6967d1fe021.tar.gz
external_llvm-aeee93f666ef04039e6bed630027c6967d1fe021.tar.bz2
Remove an over-aggressive assert. Functions with empty struct return
types don't have any return values, from CodeGen's perspective. This fixes PR4688. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 1eb87e8..d90b968 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -4468,9 +4468,6 @@ void SelectionDAGLowering::LowerCallTo(CallSite CS, SDValue Callee,
isTailCall,
!CS.getInstruction()->use_empty(),
Callee, Args, DAG, getCurDebugLoc());
- assert((isTailCall || CS.getType() == Type::VoidTy ||
- Result.first.getNode()) &&
- "Non-null value expected with non-void non-tail call!");
assert((isTailCall || Result.second.getNode()) &&
"Non-null chain expected with non-tail call!");
assert((Result.second.getNode() || !Result.first.getNode()) &&