Commit 0aac6858 authored by titzer's avatar titzer Committed by Commit bot

[turbofan] Handle void return in simplified-lowering.cc.

R=jarin@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1296933002

Cr-Commit-Position: refs/heads/master@{#30197}
parent bb9f374f
...@@ -430,7 +430,11 @@ class RepresentationSelector { ...@@ -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) { void VisitStateValues(Node* node) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment