commit | 8542a55c0a83b76494a57cdfeb3f60168fdefd55 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Oct 07 00:12:37 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Oct 07 00:12:37 2008 +0000 |
tree | 3bb35a31bb2c2ebc4fbe9db6fb35f805ea64dd8c | |
parent | 7b354ea20f61c88e24bceb7f27fbb0b083769819 [diff] [blame] |
Correctly handle calls with no return values. This fixes 2006-01-23-UnionInit on x86-64 when inlining is not enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57223 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 7690250..76aecc3 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@ -5337,7 +5337,7 @@ 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)