ARC: use the new .cursor annotation for 'up' pointers
This commit is contained in:
parent
6ad0238fd7
commit
3020e49b75
2 changed files with 7 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ proc fillBodyObj(c: var TLiftCtx; n, body, x, y: PNode) =
|
|||
of nkSym:
|
||||
let f = n.sym
|
||||
if sfCursor in f.flags and f.typ.skipTypes(abstractInst).kind in {tyRef, tyProc} and
|
||||
c.g.config.selectedGC == gcDestructors:
|
||||
c.g.config.selectedGC in {gcDestructors, gcHooks}:
|
||||
defaultOp(c, f.typ, body, x.dotField(f), y.dotField(f))
|
||||
else:
|
||||
fillBody(c, f.typ, body, x.dotField(f), y.dotField(f))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue