From 54af9431d1628aa61b0f1742cb2f853ca1ea4b2b Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 17 Mar 2026 14:43:35 +0000 Subject: [PATCH] ir3/array_to_ssa: initialize ir3_instruction::data This should have already been NULL because this looks like the first time this field is used, but that's a bit fragile. Signed-off-by: Rhys Perry Part-of: --- src/freedreno/ir3/ir3_array_to_ssa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_array_to_ssa.c b/src/freedreno/ir3/ir3_array_to_ssa.c index d3ea899ed90..dacd516d30a 100644 --- a/src/freedreno/ir3/ir3_array_to_ssa.c +++ b/src/freedreno/ir3/ir3_array_to_ssa.c @@ -212,8 +212,10 @@ ir3_array_to_ssa(struct ir3 *ir) foreach_block (block, &ir->block_list) { foreach_instr (instr, &block->instr_list) { - if (instr->opc == OPC_META_PHI) + if (instr->opc == OPC_META_PHI) { + instr->data = NULL; continue; + } foreach_dst (reg, instr) { if ((reg->flags & IR3_REG_ARRAY) && !reg->tied) {