Index: test/cctest/compiler/test-js-typed-lowering.cc |
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc |
index 604e696ab53efd0f74510e678a051a3a7c6afee9..a925d5ea2c7eb934eb647c164582d716696344cc 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -694,6 +694,7 @@ TEST(RemoveToNumberEffects) { |
JSTypedLoweringTester R; |
Node* effect_use = NULL; |
+ Node* zero = R.graph.NewNode(R.common.Int32Constant(0)); |
for (int i = 0; i < 10; i++) { |
Node* p0 = R.Parameter(Type::Number()); |
Node* ton = R.Unop(R.javascript.ToNumber(), p0); |
@@ -724,10 +725,12 @@ TEST(RemoveToNumberEffects) { |
R.context(), frame_state, ton, R.start()); |
break; |
case 5: |
- effect_use = R.graph.NewNode(R.common.Return(), p0, ton, R.start()); |
+ effect_use = |
+ R.graph.NewNode(R.common.Return(), zero, p0, ton, R.start()); |
break; |
case 6: |
- effect_use = R.graph.NewNode(R.common.Return(), ton, ton, R.start()); |
+ effect_use = |
+ R.graph.NewNode(R.common.Return(), zero, ton, ton, R.start()); |
} |
R.CheckEffectInput(R.start(), ton); |