Index: src/compiler/node-properties.cc |
diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc |
index 19ca5dd1b655c8bf727799fb4c7d75b46161f61f..80031eb2dcb32a163e3fb501e7e2fa7c2b64fb45 100644 |
--- a/src/compiler/node-properties.cc |
+++ b/src/compiler/node-properties.cc |
@@ -196,6 +196,13 @@ void NodeProperties::ReplaceUses(Node* node, Node* value, Node* effect, |
// static |
+void NodeProperties::ChangeOp(Node* node, const Operator* new_op) { |
+ DCHECK_EQ(OperatorProperties::GetTotalInputCount(new_op), node->InputCount()); |
+ node->set_op(new_op); |
+} |
+ |
+ |
+// static |
Node* NodeProperties::FindProjection(Node* node, size_t projection_index) { |
for (auto use : node->uses()) { |
if (use->opcode() == IrOpcode::kProjection && |