fixes new liftLocals pass

This commit is contained in:
Andreas Rumpf 2017-11-02 20:39:08 +01:00
commit cccdd9b58e
2 changed files with 8 additions and 6 deletions

View file

@ -978,7 +978,7 @@ proc transformBody*(module: PSym, n: PNode, prc: PSym): PNode =
liftDefer(c, result)
#result = liftLambdas(prc, result)
when useEffectSystem: trackProc(prc, result)
liftLocalsIfRequested(prc)
result = liftLocalsIfRequested(prc, result)
if c.needsDestroyPass and newDestructors:
result = injectDestructorCalls(prc, result)
incl(result.flags, nfTransf)