Index: src/compiler/graph-builder.cc |
diff --git a/src/compiler/graph-builder.cc b/src/compiler/graph-builder.cc |
index 9c414f1bf9b1df5086e683bfdf15536ca85562f7..62972e0a750cb932d5f3ae15762b476fc5a2aec5 100644 |
--- a/src/compiler/graph-builder.cc |
+++ b/src/compiler/graph-builder.cc |
@@ -30,6 +30,8 @@ StructuredGraphBuilder::StructuredGraphBuilder(Graph* graph, |
Node* StructuredGraphBuilder::MakeNode(Operator* op, int value_input_count, |
Node** value_inputs) { |
+ DCHECK(op->InputCount() == value_input_count); |
+ |
bool has_context = OperatorProperties::HasContextInput(op); |
bool has_control = OperatorProperties::GetControlInputCount(op) == 1; |
bool has_effect = OperatorProperties::GetEffectInputCount(op) == 1; |