Index: src/compiler/graph.cc |
diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc |
index 1650bdfdd76a57d1c17e6546518701438f0f1d36..193861187ba1f8aeec349c6787a7c4e133f55a5b 100644 |
--- a/src/compiler/graph.cc |
+++ b/src/compiler/graph.cc |
@@ -22,8 +22,10 @@ Graph::Graph(Zone* zone) |
decorators_(zone) {} |
-void Graph::Decorate(Node* node) { |
- for (auto const decorator : decorators_) decorator->Decorate(node); |
+void Graph::Decorate(Node* node, bool incomplete) { |
+ for (auto const decorator : decorators_) { |
+ decorator->Decorate(node, incomplete); |
+ } |
} |
@@ -44,7 +46,7 @@ Node* Graph::NewNode(const Operator* op, int input_count, Node** inputs, |
DCHECK_LE(op->ValueInputCount(), input_count); |
Node* const node = |
Node::New(zone(), NextNodeId(), op, input_count, inputs, incomplete); |
- if (!incomplete) Decorate(node); |
+ Decorate(node, incomplete); |
return node; |
} |