Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: src/compiler/simplified-lowering.cc

Issue 1296933002: [turbofan] Handle void return in simplified-lowering.cc. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698