Reviewers: Jarin,

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

[email protected]
BUG=

Please review this at https://codereview.chromium.org/1296933002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+5, -1 lines):
  M src/compiler/simplified-lowering.cc


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) {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to