summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-04-15 01:17:17 +0200
committerGitHub <noreply@github.com>2023-04-15 01:17:17 +0200
commitea8aafa7c9e28e13c73640256505f75b196231b2 (patch)
treeed119faaaaa73b359264f75fefca8c50b28fb3af
parent512517c223a649018072effcb7bd9f3f9b9d16d3 (diff)
downloadNim-ea8aafa7c9e28e13c73640256505f75b196231b2.tar.gz
minor codegen bugfix (#21670)
-rw-r--r--compiler/ccgstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim
index df7eada00..db86af3b0 100644
--- a/compiler/ccgstmts.nim
+++ b/compiler/ccgstmts.nim
@@ -613,7 +613,7 @@ proc genWhileStmt(p: BProc, t: PNode) =
       if (t[0].kind != nkIntLit) or (t[0].intVal == 0):
         lineF(p, cpsStmts, "if (!$1) goto ", [rdLoc(a)])
         assignLabel(p.blocks[p.breakIdx], p.s(cpsStmts))
-        lineF(p, cpsStmts, ";$n", [])
+        appcg(p, cpsStmts, ";$n", [])
       genStmts(p, loopBody)
 
       if optProfiler in p.options: