parent
8ee0eda841
commit
6d7d1e60fe
3 changed files with 58 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ const
|
|||
tyAlias, tyInferred, tySink, tyOwned}
|
||||
# see also ast.abstractVarRange
|
||||
abstractInst* = {tyGenericInst, tyDistinct, tyOrdinal, tyTypeDesc, tyAlias,
|
||||
tyInferred, tySink, tyOwned}
|
||||
tyInferred, tySink, tyOwned} # xxx what about tyStatic?
|
||||
abstractInstOwned* = abstractInst + {tyOwned}
|
||||
skipPtrs* = {tyVar, tyPtr, tyRef, tyGenericInst, tyTypeDesc, tyAlias,
|
||||
tyInferred, tySink, tyLent, tyOwned}
|
||||
|
|
|
|||
|
|
@ -980,7 +980,7 @@ proc genBindSym(c: PCtx; n: PNode; dest: var TDest) =
|
|||
|
||||
proc fitsRegister*(t: PType): bool =
|
||||
assert t != nil
|
||||
t.skipTypes(abstractInst-{tyTypeDesc}).kind in {
|
||||
t.skipTypes(abstractInst + {tyStatic} - {tyTypeDesc}).kind in {
|
||||
tyRange, tyEnum, tyBool, tyInt..tyUInt64, tyChar}
|
||||
|
||||
proc ldNullOpcode(t: PType): TOpcode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue