diff options
| author | 2015-06-26 08:56:45 +0000 | |
|---|---|---|
| committer | 2015-06-26 08:56:46 +0000 | |
| commit | 2f81cd8f4ff21caf133024795bd5ae028c9f68cd (patch) | |
| tree | 9f7124df650984b848e00625c4185641b5f1650c /compiler/utils/growable_array.h | |
| parent | e4a15549608b1c5b1e1cb32f840a8467602dcc14 (diff) | |
| parent | 0b5c7d1994b76090afcc825e737f2b8c546da2f8 (diff) | |
Merge "ART: Implement try/catch blocks in Builder"
Diffstat (limited to 'compiler/utils/growable_array.h')
| -rw-r--r-- | compiler/utils/growable_array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/growable_array.h b/compiler/utils/growable_array.h index e4b1e7d0e9..f85e026f16 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) const { - for (size_t i = 0; i < num_used_; ++i) { + bool Contains(T value, size_t start_from = 0) const { + for (size_t i = start_from; i < num_used_; ++i) { if (elem_list_[i] == value) { return true; } |