Index: test/cctest/compiler/test-simplified-lowering.cc |
diff --git a/test/cctest/compiler/test-simplified-lowering.cc b/test/cctest/compiler/test-simplified-lowering.cc |
index 07f51533f1da31b6248a5d93e252b5481105129b..934f958f00598242965f2a5a5eedc450e92b8f3f 100644 |
--- a/test/cctest/compiler/test-simplified-lowering.cc |
+++ b/test/cctest/compiler/test-simplified-lowering.cc |
@@ -1219,7 +1219,10 @@ TEST(InsertBasicChanges) { |
static void CheckChangesAroundBinop(TestingGraph* t, const Operator* op, |
IrOpcode::Value input_change, |
IrOpcode::Value output_change) { |
- Node* binop = t->graph()->NewNode(op, t->p0, t->p1); |
+ Node* binop = |
+ op->ControlInputCount() == 0 |
+ ? t->graph()->NewNode(op, t->p0, t->p1) |
+ : t->graph()->NewNode(op, t->p0, t->p1, t->graph()->start()); |
t->Return(binop); |
t->Lower(); |
CHECK_EQ(input_change, binop->InputAt(0)->opcode()); |