Index: src/compiler/node-properties.cc |
diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc |
index eb216781d18fae37fd765194873cb4677e11c456..ac768a7d37f1781f8404c8ad0414ba93997bda8b 100644 |
--- a/src/compiler/node-properties.cc |
+++ b/src/compiler/node-properties.cc |
@@ -214,7 +214,9 @@ void NodeProperties::CollectControlProjections(Node* node, Node** projections, |
std::memset(projections, 0, sizeof(*projections) * projection_count); |
#endif |
size_t if_value_index = 0; |
- for (Node* const use : node->uses()) { |
+ for (Edge const edge : node->use_edges()) { |
+ if (!IsControlEdge(edge)) continue; |
+ Node* use = edge.from(); |
size_t index; |
switch (use->opcode()) { |
case IrOpcode::kIfTrue: |