ARC: yet another silly bugfix
This commit is contained in:
parent
f0c5d99924
commit
c85e266d1d
2 changed files with 31 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue