parent
1948eadc24
commit
fd7fd1819c
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ proc toStmtList(n: PNode): PNode =
|
||||||
proc addGotoOut(n: PNode, gotoOut: PNode): PNode =
|
proc addGotoOut(n: PNode, gotoOut: PNode): PNode =
|
||||||
# Make sure `n` is a stmtlist, and ends with `gotoOut`
|
# Make sure `n` is a stmtlist, and ends with `gotoOut`
|
||||||
result = toStmtList(n)
|
result = toStmtList(n)
|
||||||
if result.len != 0 and result.sons[^1].kind != nkGotoState:
|
if result.len == 0 or result.sons[^1].kind != nkGotoState:
|
||||||
result.add(gotoOut)
|
result.add(gotoOut)
|
||||||
|
|
||||||
proc newTempVar(ctx: var Ctx, typ: PType): PSym =
|
proc newTempVar(ctx: var Ctx, typ: PType): PSym =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue