fixes view types for sizeof() and --gc:orc (#15680)

This commit is contained in:
Andreas Rumpf
2020-10-22 18:52:05 +02:00
committed by GitHub
parent 8358974b73
commit 64016ddedc
3 changed files with 5 additions and 5 deletions

View File

@@ -242,7 +242,7 @@ proc computeSizeAlign(conf: ConfigRef; typ: PType) =
else:
typ.size = conf.target.ptrSize
typ.align = int16(conf.target.ptrSize)
of tyCString, tySequence, tyPtr, tyRef, tyVar, tyLent, tyOpenArray:
of tyCString, tySequence, tyPtr, tyRef, tyVar, tyLent:
let base = typ.lastSon
if base == typ:
# this is not the correct location to detect ``type A = ptr A``