| ... | @@ -181803,17 +181803,15 @@ fn intInfo(cg: *CodeGen, ty: Type) ?std.lang.Type.Int { | ... | @@ -181803,17 +181803,15 @@ fn intInfo(cg: *CodeGen, ty: Type) ?std.lang.Type.Int { |
| 181803 | .one, .many, .c => .{ .signedness = .unsigned, .bits = cg.target.ptrBitWidth() }, | 181803 | .one, .many, .c => .{ .signedness = .unsigned, .bits = cg.target.ptrBitWidth() }, |
| 181804 | .slice => null, | 181804 | .slice => null, |
| 181805 | }, | 181805 | }, |
| 181806 | .opt_type => |opt_child| return if (!Type.fromInterned(opt_child).hasRuntimeBits(zcu)) | 181806 | .opt_type => |opt_child| { |
| 181807 | .{ .signedness = .unsigned, .bits = 1 } | 181807 | if (!Type.fromInterned(opt_child).hasRuntimeBits(zcu)) { |
| 181808 | else switch (ip.indexToKey(opt_child)) { | 181808 | return .{ .signedness = .unsigned, .bits = 1 }; |
| 181809 | .ptr_type => |ptr_type| switch (ptr_type.flags.size) { | 181809 | } |
| 181810 | .one, .many => switch (ptr_type.flags.is_allowzero) { | 181810 | if (Type.fromInterned(ty_index).optionalReprIsPayload(zcu)) { |
| 181811 | false => .{ .signedness = .unsigned, .bits = cg.target.ptrBitWidth() }, | 181811 | ty_index = opt_child; |
| 181812 | true => null, | 181812 | continue; |
| 181813 | }, | 181813 | } |
| 181814 | .slice, .c => null, | 181814 | return null; |
| 181815 | }, | | |
| 181816 | else => null, | | |
| 181817 | }, | 181815 | }, |
| 181818 | .error_union_type => |error_union_type| return if (!Type.fromInterned(error_union_type.payload_type) | 181816 | .error_union_type => |error_union_type| return if (!Type.fromInterned(error_union_type.payload_type) |
| 181819 | .hasRuntimeBits(zcu)) .{ .signedness = .unsigned, .bits = zcu.errorSetBits() } else null, | 181817 | .hasRuntimeBits(zcu)) .{ .signedness = .unsigned, .bits = zcu.errorSetBits() } else null, |