This commit is contained in:
ringabout
2026-01-26 18:34:06 +08:00
parent 16929b5483
commit c4e01f0b90

View File

@@ -454,11 +454,9 @@ template setFrameInfo(c: PCell) =
proc getRequiredAlign(typ: PNimType): int {.inline.} =
# Determine the required alignment for a type.
# Priority: typ.base.align -> typ.align -> MemAlign
if typ.base != nil and typ.base.align > 0:
if typ.kind notin {tyString, tySequence} and
typ.base != nil and typ.base.align > 0:
typ.base.align
elif typ.align > 0:
typ.align
else:
MemAlign