diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-07 00:12:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-07 00:12:37 +0000 |
commit | bef9b0bef08a325088ca798831ccb9f7b9107033 (patch) | |
tree | 36b665ff2ddda66188bfc12ad301d700fd547e81 /llvm/lib/CodeGen | |
parent | 655374859994cfca049b83390b89558ce27c1555 (diff) | |
download | bcm5719-llvm-bef9b0bef08a325088ca798831ccb9f7b9107033.tar.gz bcm5719-llvm-bef9b0bef08a325088ca798831ccb9f7b9107033.zip |
Correctly handle calls with no return values. This fixes
2006-01-23-UnionInit on x86-64 when inlining is not enabled.
llvm-svn: 57223
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 76902505bc6..76aecc312e4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -5337,7 +5337,7 @@ TargetLowering::LowerCallTo(SDValue Chain, const Type *RetTy, Chain = Res.getValue(LoweredRetTys.size() - 1); // Gather up the call result into a single value. - if (RetTy != Type::VoidTy) { + if (RetTy != Type::VoidTy && !RetTys.empty()) { ISD::NodeType AssertOp = ISD::DELETED_NODE; if (RetSExt) |