| ... | @@ -1302,10 +1302,7 @@ pub fn abiSize(ty: Type, zcu: *const Zcu) u64 { | ... | @@ -1302,10 +1302,7 @@ pub fn abiSize(ty: Type, zcu: *const Zcu) u64 { |
| 1302 | } | 1302 | } |
| 1303 | | 1303 | |
| 1304 | pub fn ptrAbiAlignment(target: *const Target) Alignment { | 1304 | pub fn ptrAbiAlignment(target: *const Target) Alignment { |
| 1305 | // The eZ80 has 24-bit pointers, which aren't exact powers of two, tripping | 1305 | return .fromNonzeroByteUnits(std.zig.target.intAlignment(target, target.ptrBitWidth())); |
| 1306 | // the assert. The alignment of eZ80 pointers is 1, so we bypass the check. | | |
| 1307 | if (target.cpu.arch == .ez80) return .@"1"; | | |
| 1308 | return .fromNonzeroByteUnits(@divExact(target.ptrBitWidth(), 8)); | | |
| 1309 | } | 1306 | } |
| 1310 | pub fn ptrAbiSize(target: *const Target) u64 { | 1307 | pub fn ptrAbiSize(target: *const Target) u64 { |
| 1311 | return @divExact(target.ptrBitWidth(), 8); | 1308 | return @divExact(target.ptrBitWidth(), 8); |