mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 10:01:39 +00:00
progress
This commit is contained in:
@@ -1319,7 +1319,7 @@ proc transformBody*(g: ModuleGraph; idgen: IdGenerator; prc: PSym; flags: Transf
|
||||
liftDefer(c, result)
|
||||
result = liftLocalsIfRequested(prc, result, g.cache, g.config, c.idgen)
|
||||
|
||||
if prc.isIterator:
|
||||
if prc.isIterator and prc.closureBody == nil:
|
||||
if sfInjectDestructors in prc.flags:
|
||||
result = injectDestructorCalls(c.graph, c.idgen, prc, result)
|
||||
result = g.transformClosureIterator(c.idgen, prc, result)
|
||||
|
||||
Reference in New Issue
Block a user