diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-04-15 01:17:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 01:17:17 +0200 |
commit | ea8aafa7c9e28e13c73640256505f75b196231b2 (patch) | |
tree | ed119faaaaa73b359264f75fefca8c50b28fb3af | |
parent | 512517c223a649018072effcb7bd9f3f9b9d16d3 (diff) | |
download | Nim-ea8aafa7c9e28e13c73640256505f75b196231b2.tar.gz |
minor codegen bugfix (#21670)
-rw-r--r-- | compiler/ccgstmts.nim | 2 |
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: |