Index: test/unittests/compiler/common-operator-reducer-unittest.cc |
diff --git a/test/unittests/compiler/common-operator-reducer-unittest.cc b/test/unittests/compiler/common-operator-reducer-unittest.cc |
index d28477239535b9ebce60ec6c28206969bbd0c719..f294a305967e9ebf876b2f4581db7eaad456291a 100644 |
--- a/test/unittests/compiler/common-operator-reducer-unittest.cc |
+++ b/test/unittests/compiler/common-operator-reducer-unittest.cc |
@@ -361,7 +361,9 @@ TEST_F(CommonOperatorReducerTest, ReturnWithPhiAndEffectPhiAndMerge) { |
Node* ephi = graph()->NewNode(common()->EffectPhi(2), etrue, efalse, merge); |
Node* phi = graph()->NewNode(common()->Phi(MachineRepresentation::kTagged, 2), |
vtrue, vfalse, merge); |
- Node* ret = graph()->NewNode(common()->Return(), phi, ephi, merge); |
+ |
+ Node* zero = graph()->NewNode(common()->Int32Constant(0)); |
+ Node* ret = graph()->NewNode(common()->Return(), zero, phi, ephi, merge); |
graph()->SetEnd(graph()->NewNode(common()->End(1), ret)); |
StrictMock<MockAdvancedReducerEditor> editor; |
EXPECT_CALL(editor, Replace(merge, IsDead())); |