mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
d44b7c1b07
commit
b5cc34d098
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user