summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-04 02:22:29 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-04 02:22:29 +0100
commit9c6d3e26cb7e0ece92694b15e649e7cb6f716ac8 (patch)
treefef0eddec9528ed9879711104349f47e4b21c5c2 /compiler/transf.nim
parent159a2ff955e7160bbb9b80c8048efea4826363e6 (diff)
downloadNim-9c6d3e26cb7e0ece92694b15e649e7cb6f716ac8.tar.gz
fixes another regression
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