fixes view types for sizeof() and --gc:orc (#15680)
This commit is contained in:
parent
8358974b73
commit
64016ddedc
3 changed files with 5 additions and 5 deletions
|
|
@ -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``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue