diff options
author | 2016-11-09 01:48:19 +0000 | |
---|---|---|
committer | 2016-11-09 01:48:19 +0000 | |
commit | 3773f2106864cf71fa17be33058717ecc402a5ad (patch) | |
tree | 1bf43b280f3a8f484758d308383c67af328e1a9f /compiler/optimizing/bytecode_utils.h | |
parent | 8acdebc1a1b5821d3bb8e9461f7877fc234a37ff (diff) | |
parent | ca620d7bc03b23a0bcf0ef58df58603ee000dca0 (diff) |
Merge "ART: Fix tidy warnings"
Diffstat (limited to 'compiler/optimizing/bytecode_utils.h')
-rw-r--r-- | compiler/optimizing/bytecode_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/bytecode_utils.h b/compiler/optimizing/bytecode_utils.h index 6dfffce117..133afa47fe 100644 --- a/compiler/optimizing/bytecode_utils.h +++ b/compiler/optimizing/bytecode_utils.h @@ -26,7 +26,8 @@ namespace art { class CodeItemIterator : public ValueObject { public: - CodeItemIterator(const DexFile::CodeItem& code_item, uint32_t start_dex_pc = 0u) + explicit CodeItemIterator(const DexFile::CodeItem& code_item) : CodeItemIterator(code_item, 0u) {} + CodeItemIterator(const DexFile::CodeItem& code_item, uint32_t start_dex_pc) : code_ptr_(code_item.insns_ + start_dex_pc), code_end_(code_item.insns_ + code_item.insns_size_in_code_units_), dex_pc_(start_dex_pc) {} |