diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-06 15:07:58 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-06 15:07:58 +0000 |
| commit | ee902509a85ea65cc28a3197f7925a56b7d06e9d (patch) | |
| tree | 219690dad712ddc56438b957c22332d3500830b1 /llvm/lib/CodeGen | |
| parent | a60f1fc54bc8cdc0cd5cb3c21bd2a9f0b2f0b93d (diff) | |
| download | bcm5719-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.cpp | 3 |
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()) && |

