Index: test/cctest/compiler/test-control-reducer.cc |
diff --git a/test/cctest/compiler/test-control-reducer.cc b/test/cctest/compiler/test-control-reducer.cc |
index d0103f5644009aaf28f1b99a198efa54512f7a73..03aa50b376df99a8ee00224c868431503c6673a4 100644 |
--- a/test/cctest/compiler/test-control-reducer.cc |
+++ b/test/cctest/compiler/test-control-reducer.cc |
@@ -130,11 +130,8 @@ class ControlReducerTester : HandleAndZoneScope { |
} |
Node* SetSelfReferences(Node* node) { |
- Node::Inputs inputs = node->inputs(); |
- for (Node::Inputs::iterator iter(inputs.begin()); iter != inputs.end(); |
- ++iter) { |
- Node* input = *iter; |
- if (input == self) node->ReplaceInput(iter.index(), node); |
+ for (Edge edge : node->input_edges()) { |
+ if (edge.to() == self) node->ReplaceInput(edge.index(), node); |
} |
return node; |
} |