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 03aa50b376df99a8ee00224c868431503c6673a4..61dad29f11e31d0054720d6ac01e06d3426fbae8 100644 |
--- a/test/cctest/compiler/test-control-reducer.cc |
+++ b/test/cctest/compiler/test-control-reducer.cc |
@@ -52,10 +52,8 @@ static int CheckLoop(Node* node, Node* i0 = NULL, Node* i1 = NULL, |
bool IsUsedBy(Node* a, Node* b) { |
- for (UseIter i = a->uses().begin(); i != a->uses().end(); ++i) { |
- if (b == *i) return true; |
- } |
- return false; |
+ auto const uses = a->uses(); |
+ return std::find(uses.begin(), uses.end(), b) != uses.end(); |
} |