Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 119c6f0a94bb61b98ae568e4ad6bb4e5c70b32e2..eafd3b6a859f8ec5e8ecad8e9402aea414128fc7 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -430,7 +430,11 @@ class RepresentationSelector { |
} |
} |
- SetOutput(node, desc->GetMachineSignature()->GetReturn()); |
+ if (sig->return_count() > 0) { |
+ SetOutput(node, desc->GetMachineSignature()->GetReturn()); |
+ } else { |
+ SetOutput(node, kMachAnyTagged); |
+ } |
} |
void VisitStateValues(Node* node) { |