diff options
author | Wei Wang <wangw@codeaurora.org> | 2015-07-21 12:18:48 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:20:36 -0600 |
commit | 048801b194a1664f1fc1dd55338f44e92c283138 (patch) | |
tree | cc010c5edd8d359acbb40ebf4a5b8c843868a5ae /compiler/utils | |
parent | 22983bd723dcc57e62bbc21d052e11ff8d1d218f (diff) | |
download | art-048801b194a1664f1fc1dd55338f44e92c283138.zip art-048801b194a1664f1fc1dd55338f44e92c283138.tar.gz art-048801b194a1664f1fc1dd55338f44e92c283138.tar.bz2 |
ART: extension
1. add hooks for further extension
2. minor code change
Change-Id: I2615013b899f5f9b3495546e6001863fb054861a
Diffstat (limited to 'compiler/utils')
-rw-r--r-- | compiler/utils/growable_array.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/utils/growable_array.h b/compiler/utils/growable_array.h index e4b1e7d..7455818 100644 --- a/compiler/utils/growable_array.h +++ b/compiler/utils/growable_array.h @@ -128,7 +128,9 @@ class GrowableArray : public ArenaObject<kArenaAllocGrowableArray> { } } // We should either have found the element, or it was the last (unscanned) element. - DCHECK(found || (element == elem_list_[num_used_ - 1])); + // if element is not in array, don't touch anything + if(!found && (element != elem_list_[num_used_ - 1])) + return; num_used_--; } |