summaryrefslogtreecommitdiff
path: root/compiler/utils/growable_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/utils/growable_array.h')
-rw-r--r--compiler/utils/growable_array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/growable_array.h b/compiler/utils/growable_array.h
index f85e026f16..e4b1e7d0e9 100644
--- a/compiler/utils/growable_array.h
+++ b/compiler/utils/growable_array.h
@@ -46,8 +46,8 @@ class GrowableArray : public ArenaObject<kArenaAllocGrowableArray> {
}
}
- bool Contains(T value, size_t start_from = 0) const {
- for (size_t i = start_from; i < num_used_; ++i) {
+ bool Contains(T value) const {
+ for (size_t i = 0; i < num_used_; ++i) {
if (elem_list_[i] == value) {
return true;
}