| ... | @@ -2976,7 +2976,7 @@ fn zirResolveInferredAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Com | ... | @@ -2976,7 +2976,7 @@ fn zirResolveInferredAlloc(sema: *Sema, block: *Block, inst: Zir.Inst.Index) Com |
| 2976 | | 2976 | |
| 2977 | // Even though we reuse the constant instruction, we still remove it from the | 2977 | // Even though we reuse the constant instruction, we still remove it from the |
| 2978 | // block so that codegen does not see it. | 2978 | // block so that codegen does not see it. |
| 2979 | block.instructions.shrinkRetainingCapacity(block.instructions.items.len - 3); | 2979 | block.instructions.shrinkRetainingCapacity(search_index); |
| 2980 | sema.air_values.items[value_index] = try Value.Tag.decl_ref.create(sema.arena, new_decl_index); | 2980 | sema.air_values.items[value_index] = try Value.Tag.decl_ref.create(sema.arena, new_decl_index); |
| 2981 | // if bitcast ty ref needs to be made const, make_ptr_const | 2981 | // if bitcast ty ref needs to be made const, make_ptr_const |
| 2982 | // ZIR handles it later, so we can just use the ty ref here. | 2982 | // ZIR handles it later, so we can just use the ty ref here. |