| ... | ... | @@ -3035,10 +3035,11 @@ fn analyzeBlockBody( |
| 3035 | 3035 | // to emit a jump instruction to after the block when it encounters the break. |
| 3036 | 3036 | try parent_block.instructions.append(gpa, merges.block_inst); |
| 3037 | 3037 | const resolved_ty = try sema.resolvePeerTypes(parent_block, src, merges.results.items, .none); |
| 3038 | const ty_inst = try sema.addType(resolved_ty); |
| 3038 | 3039 | try sema.air_extra.ensureUnusedCapacity(gpa, @typeInfo(Air.Block).Struct.fields.len + |
| 3039 | 3040 | child_block.instructions.items.len); |
| 3040 | 3041 | sema.air_instructions.items(.data)[merges.block_inst] = .{ .ty_pl = .{ |
| 3041 | | .ty = try sema.addType(resolved_ty), |
| 3042 | .ty = ty_inst, |
| 3042 | 3043 | .payload = sema.addExtraAssumeCapacity(Air.Block{ |
| 3043 | 3044 | .body_len = @intCast(u32, child_block.instructions.items.len), |
| 3044 | 3045 | }), |