summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index c1677b23b..83311d95c 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -503,6 +503,8 @@ proc transformFor(c: PTransf, n: PNode): PTransNode =
     if not c.tooEarly:
       n.sons[length-2] = transform(c, n.sons[length-2]).PNode
       result[1] = lambdalifting.liftForLoop(n, getCurrOwner(c)).PTransNode
+    else:
+      result[1] = newNode(nkEmpty).PTransNode
     discard c.breakSyms.pop
     return result