Index: src/compiler/node-properties.cc |
diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc |
index 4fb4aa487c216ca7242d2453ff4fcc98bb84370b..552e1bc1765673587da79590882b4263831971b1 100644 |
--- a/src/compiler/node-properties.cc |
+++ b/src/compiler/node-properties.cc |
@@ -177,6 +177,15 @@ void NodeProperties::RemoveNonValueInputs(Node* node) { |
} |
+// static |
+void NodeProperties::RemoveValueInputs(Node* node) { |
+ int value_input_count = node->op()->ValueInputCount(); |
+ while (--value_input_count >= 0) { |
+ node->RemoveInput(value_input_count); |
+ } |
+} |
+ |
+ |
void NodeProperties::MergeControlToEnd(Graph* graph, |
CommonOperatorBuilder* common, |
Node* node) { |