simple programs now work with the new destroyer pass
This commit is contained in:
parent
d6c401acfb
commit
a2e4ab2e4e
4 changed files with 60 additions and 56 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue