This commit is contained in:
Andreas Rumpf 2017-02-24 00:32:03 +01:00
commit 2d546ca0ac
5 changed files with 28 additions and 7 deletions

View file

@ -30,6 +30,7 @@ proc semBreakOrContinue(c: PContext, n: PNode): PNode =
of nkIdent: s = lookUp(c, n.sons[0])
of nkSym: s = n.sons[0].sym
else: illFormedAst(n)
s = getGenSym(c, s)
if s.kind == skLabel and s.owner.id == c.p.owner.id:
var x = newSymNode(s)
x.info = n.info