Index: src/compiler/verifier.cc |
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc |
index 44a4eeae75826dff269c2ee2f34c5786529cc9aa..6021dfce2c643060e9aef6ed5b7e929bf664b52c 100644 |
--- a/src/compiler/verifier.cc |
+++ b/src/compiler/verifier.cc |
@@ -176,11 +176,11 @@ void Verifier::Visitor::Pre(Node* node) { |
// Verify all successors are projections if multiple value outputs exist. |
if (node->op()->ValueOutputCount() > 1) { |
- Node::Uses uses = node->uses(); |
- for (Node::Uses::iterator it = uses.begin(); it != uses.end(); ++it) { |
- CHECK(!NodeProperties::IsValueEdge(it.edge()) || |
- (*it)->opcode() == IrOpcode::kProjection || |
- (*it)->opcode() == IrOpcode::kParameter); |
+ for (Edge edge : node->use_edges()) { |
+ Node* use = edge.from(); |
+ CHECK(!NodeProperties::IsValueEdge(edge) || |
+ use->opcode() == IrOpcode::kProjection || |
+ use->opcode() == IrOpcode::kParameter); |
} |
} |