From ea8aafa7c9e28e13c73640256505f75b196231b2 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 15 Apr 2023 01:17:17 +0200 Subject: [PATCH] minor codegen bugfix (#21670) --- compiler/ccgstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index df7eada000..db86af3b0d 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: