| ... | @@ -17590,15 +17590,10 @@ fn zirTryPtr(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileErr | ... | @@ -17590,15 +17590,10 @@ fn zirTryPtr(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileErr |
| 17590 | const is_cold = sema.branch_hint == .cold; | 17590 | const is_cold = sema.branch_hint == .cold; |
| 17591 | | 17591 | |
| 17592 | const operand_ty = sema.typeOf(operand); | 17592 | const operand_ty = sema.typeOf(operand); |
| 17593 | const ptr_info = operand_ty.ptrInfo(zcu); | 17593 | const res_ty = try pt.ptrType(info: { |
| 17594 | const res_ty = try pt.ptrType(.{ | 17594 | var new = operand_ty.ptrInfo(zcu); |
| 17595 | .child = err_union_ty.errorUnionPayload(zcu).toIntern(), | 17595 | new.child = err_union_ty.errorUnionPayload(zcu).toIntern(); |
| 17596 | .flags = .{ | 17596 | break :info new; |
| 17597 | .is_const = ptr_info.flags.is_const, | | |
| 17598 | .is_volatile = ptr_info.flags.is_volatile, | | |
| 17599 | .is_allowzero = ptr_info.flags.is_allowzero, | | |
| 17600 | .address_space = ptr_info.flags.address_space, | | |
| 17601 | }, | | |
| 17602 | }); | 17597 | }); |
| 17603 | const res_ty_ref = Air.internedToRef(res_ty.toIntern()); | 17598 | const res_ty_ref = Air.internedToRef(res_ty.toIntern()); |
| 17604 | try sema.air_extra.ensureUnusedCapacity(sema.gpa, @typeInfo(Air.TryPtr).@"struct".field_names.len + | 17599 | try sema.air_extra.ensureUnusedCapacity(sema.gpa, @typeInfo(Air.TryPtr).@"struct".field_names.len + |