summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitee902509a85ea65cc28a3197f7925a56b7d06e9d (patch)
tree219690dad712ddc56438b957c22332d3500830b1 /llvm/lib/CodeGen
parenta60f1fc54bc8cdc0cd5cb3c21bd2a9f0b2f0b93d (diff)
downloadbcm5719-llvm-ee902509a85ea65cc28a3197f7925a56b7d06e9d.tar.gz
bcm5719-llvm-ee902509a85ea65cc28a3197f7925a56b7d06e9d.zip
Remove an over-aggressive assert. Functions with empty struct return
types don't have any return values, from CodeGen's perspective. This fixes PR4688. llvm-svn: 78311
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 1eb87e888c0..d90b9680aa8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/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()) &&
OpenPOWER on IntegriCloud