diff options
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r-- | compiler/optimizing/builder.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index c142e4ddb5..41c1d2cf1b 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1034,7 +1034,11 @@ void HGraphBuilder::BuildFilledNewArray(uint32_t dex_pc, QuickEntrypointEnum entrypoint = NeedsAccessCheck(type_index) ? kQuickAllocArrayWithAccessCheck : kQuickAllocArray; - HInstruction* object = new (arena_) HNewArray(length, dex_pc, type_index, entrypoint); + HInstruction* object = new (arena_) HNewArray(length, + dex_pc, + type_index, + *dex_compilation_unit_->GetDexFile(), + entrypoint); current_block_->AddInstruction(object); const char* descriptor = dex_file_->StringByTypeIdx(type_index); @@ -2001,8 +2005,8 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 QuickEntrypointEnum entrypoint = NeedsAccessCheck(type_index) ? kQuickAllocArrayWithAccessCheck : kQuickAllocArray; - current_block_->AddInstruction( - new (arena_) HNewArray(length, dex_pc, type_index, entrypoint)); + current_block_->AddInstruction(new (arena_) HNewArray( + length, dex_pc, type_index, *dex_compilation_unit_->GetDexFile(), entrypoint)); UpdateLocal(instruction.VRegA_22c(), current_block_->GetLastInstruction()); break; } |