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 45705e5d21611538256a092d89a741e81dabf071..8e0ccff27c9fe1b4c195cc1c1c2edbeeae0b4a8b 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); |