We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e0346 commit 339e441Copy full SHA for 339e441
src/Type.zig
@@ -1603,7 +1603,8 @@ fn abiSizeInnerOptional(
1603
}
1604
1605
pub fn ptrAbiAlignment(target: *const Target) Alignment {
1606
- // ez80 has 24-bit pointers, and the alignment of pointers is 1.
+ // The eZ80 has 24-bit pointers, which aren't exact powers of two, tripping
1607
+ // the assert. The alignment of eZ80 pointers is 1, so we bypass the check.
1608
if (target.cpu.arch == .ez80) return .fromByteUnits(1);
1609
return Alignment.fromNonzeroByteUnits(@divExact(target.ptrBitWidth(), 8));
1610
0 commit comments