diff options
author | Araq <rumpf_a@web.de> | 2019-11-22 17:18:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-11-22 17:18:11 +0100 |
commit | c85e266d1d6553fe14ecd28af7a58687672c859d (patch) | |
tree | 432006ba9396ff11a620e1207deec5dae5308c99 /compiler | |
parent | f0c5d99924768175c332f412eb9c72ce5e28d0cb (diff) | |
download | Nim-c85e266d1d6553fe14ecd28af7a58687672c859d.tar.gz |
ARC: yet another silly bugfix
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sempass2.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 00afb737d..411617acd 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -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 |