ARC: yet another silly bugfix

This commit is contained in:
Araq 2019-11-22 17:18:01 +01:00
commit c85e266d1d
2 changed files with 31 additions and 0 deletions

View file

@ -692,6 +692,8 @@ proc track(tracked: PEffects, n: PNode) =
case n.kind
of nkSym:
useVar(tracked, n)
if n.sym.typ != nil and tfHasAsgn in n.sym.typ.flags:
tracked.owner.flags.incl sfInjectDestructors
of nkRaiseStmt:
if n[0].kind != nkEmpty:
n.sons[0].info = n.info