From b546163926889130354ccdbcccb80c0331c13f3c Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 15 Oct 2018 14:24:21 +0100 Subject: Fix HNewArray with unresolved primitive array type. And enable test 920-objects that was crashing because of this bug. Test: testrunner.py --host --jit-on-first-use -t 920 Test: testrunner.py --host --optimizing Test: m test-art-host-gtest Bug: 117638896 Change-Id: I47dc893b121c82de537b3147c86d37a6eecf2d62 --- compiler/optimizing/instruction_builder.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/instruction_builder.h') diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index af1b86ca6f..2ab2139216 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -179,6 +179,9 @@ class HInstructionBuilder : public ValueObject { uint32_t call_site_idx, const InstructionOperands& operands); + // Builds a new array node. + HNewArray* BuildNewArray(uint32_t dex_pc, dex::TypeIndex type_index, HInstruction* length); + // Builds a new array node and the instructions that fill it. HNewArray* BuildFilledNewArray(uint32_t dex_pc, dex::TypeIndex type_index, -- cgit v1.2.3-59-g8ed1b