some progress on bug #12443

This commit is contained in:
Andreas Rumpf 2019-10-27 17:50:22 +01:00
commit 7192b13609
5 changed files with 45 additions and 26 deletions

View file

@ -636,7 +636,8 @@ proc reverseDestroys(destroys: seq[PNode]): seq[PNode] =
result.add destroys[i]
proc injectDestructorCalls*(g: ModuleGraph; owner: PSym; n: PNode): PNode =
if sfGeneratedOp in owner.flags or (owner.kind == skIterator and isInlineIterator(owner.typ)): return n
if sfGeneratedOp in owner.flags or (owner.kind == skIterator and isInlineIterator(owner.typ)):
return n
var c: Con
c.owner = owner
c.destroys = newNodeI(nkStmtList, n.info)