diff options
Diffstat (limited to 'runtime/art_method.cc')
-rw-r--r-- | runtime/art_method.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc index 9005120eb0..7ddaa7edc3 100644 --- a/runtime/art_method.cc +++ b/runtime/art_method.cc @@ -297,9 +297,8 @@ uint32_t ArtMethod::FindCatchBlock(Handle<mirror::Class> exception_type, } } if (found_dex_pc != dex::kDexNoIndex) { - const Instruction* first_catch_instr = - Instruction::At(&code_item->insns_[found_dex_pc]); - *has_no_move_exception = (first_catch_instr->Opcode() != Instruction::MOVE_EXCEPTION); + const Instruction& first_catch_instr = DexInstructions().InstructionAt(found_dex_pc); + *has_no_move_exception = (first_catch_instr.Opcode() != Instruction::MOVE_EXCEPTION); } // Put the exception back. if (exception != nullptr) { |