| ... | ... | @@ -1302,10 +1302,7 @@ pub fn abiSize(ty: Type, zcu: *const Zcu) u64 { |
| 1302 | 1302 | } |
| 1303 | 1303 | |
| 1304 | 1304 | pub fn ptrAbiAlignment(target: *const Target) Alignment { |
| 1305 | | // The eZ80 has 24-bit pointers, which aren't exact powers of two, tripping |
| 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)); |
| 1305 | return .fromNonzeroByteUnits(std.zig.target.intAlignment(target, target.ptrBitWidth())); |
| 1309 | 1306 | } |
| 1310 | 1307 | pub fn ptrAbiSize(target: *const Target) u64 { |
| 1311 | 1308 | return @divExact(target.ptrBitWidth(), 8); |