Index: src/compiler/verifier.cc |
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc |
index b739fe39abf26599511e787400c051638f13a37e..a6d6a792717b094ed4c5b049714122e119abbb80 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); |
} |
} |