summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2017-11-13 23:54:21 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-11-13 23:54:21 +0000
commit43b475f4d2d359e9161455aacc92307f3f23f1b8 (patch)
treefe1124ff806c05d2d9ca605829ad552db3be59c1 /compiler/optimizing
parent37eeae22a7666922c6c06734a8cdc7d34b08e2f1 (diff)
parent3da1d0f0881e130ebab95e2d06abe7d2beff57f0 (diff)
Merge "Use CodeItemAccessor helpers for method verifier"
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/block_builder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/block_builder.cc b/compiler/optimizing/block_builder.cc
index 595dd4d226..2432f13044 100644
--- a/compiler/optimizing/block_builder.cc
+++ b/compiler/optimizing/block_builder.cc
@@ -269,7 +269,9 @@ void HBasicBlockBuilder::InsertTryBoundaryBlocks() {
// loop for synchronized blocks.
if (ContainsElement(throwing_blocks_, block)) {
// Try to find a TryItem covering the block.
- const int32_t try_item_idx = DexFile::FindTryItem(code_item_, block->GetDexPc());
+ const int32_t try_item_idx = DexFile::FindTryItem(DexFile::GetTryItems(code_item_, 0u),
+ code_item_.tries_size_,
+ block->GetDexPc());
if (try_item_idx != -1) {
// Block throwing and in a TryItem. Store the try block information.
try_block_info.Put(block->GetBlockId(), DexFile::GetTryItems(code_item_, try_item_idx));