summaryrefslogtreecommitdiff
path: root/compiler/utils/growable_array.h
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-06-26 09:59:52 +0000
committer David Brazdil <dbrazdil@google.com> 2015-06-26 09:59:52 +0000
commit3e18738bd338e9f8363b26bc895f38c0ec682824 (patch)
tree708013ef06cfb524f040b2b5c494f7f3cb84ac2c /compiler/utils/growable_array.h
parent0b5c7d1994b76090afcc825e737f2b8c546da2f8 (diff)
Revert "ART: Implement try/catch blocks in Builder"
Causes OutOfMemory issues, need to investigate. This reverts commit 0b5c7d1994b76090afcc825e737f2b8c546da2f8. Change-Id: I263e6cc4df5f9a56ad2ce44e18932ca51d7e349f
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;
}