From e7776615ea6b005051219845a143231b5bb1e4f8 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 17 Feb 2025 09:50:39 +0000 Subject: Optimizing: Do not crash on bad `filled-new-array` opcode. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: testrunner.py --host --jit --jit-on-first-use -t 412 Change-Id: I8b86c806492b9b3ff44a2e670650e5ed18749190 --- compiler/optimizing/instruction_builder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/instruction_builder.h') diff --git a/compiler/optimizing/instruction_builder.h b/compiler/optimizing/instruction_builder.h index b3b5deae59..90ab75ec92 100644 --- a/compiler/optimizing/instruction_builder.h +++ b/compiler/optimizing/instruction_builder.h @@ -177,9 +177,9 @@ class HInstructionBuilder : public ValueObject { 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, - const InstructionOperands& operands); + bool BuildFilledNewArray(uint32_t dex_pc, + dex::TypeIndex type_index, + const InstructionOperands& operands); void BuildFillArrayData(const Instruction& instruction, uint32_t dex_pc); -- cgit v1.2.3-59-g8ed1b