fixes another regression
This commit is contained in:
parent
159a2ff955
commit
9c6d3e26cb
1 changed files with 2 additions and 0 deletions
|
|
@ -503,6 +503,8 @@ proc transformFor(c: PTransf, n: PNode): PTransNode =
|
||||||
if not c.tooEarly:
|
if not c.tooEarly:
|
||||||
n.sons[length-2] = transform(c, n.sons[length-2]).PNode
|
n.sons[length-2] = transform(c, n.sons[length-2]).PNode
|
||||||
result[1] = lambdalifting.liftForLoop(n, getCurrOwner(c)).PTransNode
|
result[1] = lambdalifting.liftForLoop(n, getCurrOwner(c)).PTransNode
|
||||||
|
else:
|
||||||
|
result[1] = newNode(nkEmpty).PTransNode
|
||||||
discard c.breakSyms.pop
|
discard c.breakSyms.pop
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue