summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-24 00:32:03 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-24 00:32:14 +0100
commit2d546ca0ac80486b8f31e389ef19e4d65093a1fa (patch)
tree68b582f85b7d0da2d871b233a4a9be153c93dd97 /compiler/semexprs.nim
parent22789a0bfc326ae6a292679b4e9d9eb2a295c26a (diff)
downloadNim-2d546ca0ac80486b8f31e389ef19e4d65093a1fa.tar.gz
fixes #5417
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 542d7b4e3..d9a5f6c50 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -2107,7 +2107,7 @@ proc semBlock(c: PContext, n: PNode): PNode =
     var labl = newSymG(skLabel, n.sons[0], c)
     if sfGenSym notin labl.flags:
       addDecl(c, labl)
-      n.sons[0] = newSymNode(labl, n.sons[0].info)
+    n.sons[0] = newSymNode(labl, n.sons[0].info)
     suggestSym(n.sons[0].info, labl)
     styleCheckDef(labl)
   n.sons[1] = semExpr(c, n.sons[1])