simple programs now work with the new destroyer pass

This commit is contained in:
Andreas Rumpf 2017-10-12 17:42:15 +02:00
commit a2e4ab2e4e
4 changed files with 60 additions and 56 deletions

View file

@ -973,7 +973,7 @@ proc transformBody*(module: PSym, n: PNode, prc: PSym): PNode =
incl(result.flags, nfTransf)
when useEffectSystem: trackProc(prc, result)
if prc.kind == skFunc:
result = injectDestructorCalls(prc, n)
result = injectDestructorCalls(prc, result)
#if prc.name.s == "testbody":
# echo renderTree(result)