summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgen.c b/cgen.c
index 928e0ff..ccbeb7e 100644
--- a/cgen.c
+++ b/cgen.c
@@ -1126,12 +1126,12 @@ static void cgen_expr_pre(CGenerator *g, Expression *e) {
}
}
cgen_block(g, &fo->body, ret_name, CGEN_BLOCK_NOBRACES);
+
+ cgen_write(g, "}}");
if (fo->body.c.break_lbl) {
cgen_lbl(g, fo->body.c.break_lbl);
cgen_writeln(g, ":;");
}
-
- cgen_write(g, "}}");
} break;
case EXPR_BLOCK:
e->cgen.id = id;