Removed oldIterTranf feature

This commit is contained in:
Yuriy Glukhov 2018-06-10 23:42:53 +03:00
commit 5c449c8cd1
5 changed files with 4 additions and 109 deletions

View file

@ -985,7 +985,7 @@ proc transformBody*(g: ModuleGraph; module: PSym, n: PNode, prc: PSym): PNode =
if c.needsDestroyPass: #and newDestructors:
result = injectDestructorCalls(g, prc, result)
if prc.isIterator and oldIterTransf notin g.config.features:
if prc.isIterator:
result = g.transformClosureIterator(prc, result)
incl(result.flags, nfTransf)