aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-16 17:25:02 +0200
committerlemon <lsof@mailbox.org>2025-10-16 17:25:02 +0200
commit77b13b42643991fc8c2b8942ca167eb7bf156908 (patch)
treef65a402832af6111c623af02cf946f7de928e223 /ir.c
parentc19b3e277399a513c5e3a02d126ba666847566df (diff)
wide str and char literals
Diffstat (limited to 'ir.c')
-rw-r--r--ir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir.c b/ir.c
index f3b6766..a196aa1 100644
--- a/ir.c
+++ b/ir.c
@@ -492,7 +492,8 @@ fillblkids(struct function *fn)
void
useblk(struct function *fn, struct block *blk)
{
- if (fn->curblk) assert(fn->curblk->jmp.t && "never finished block");
+ extern int nerror;
+ if (fn->curblk && nerror == 0) assert(fn->curblk->jmp.t && "never finished block");
if (blk) assert(!blk->jmp.t && "reusing built block");
if (!blk->lprev) { /* initialize */
blk->lnext = fn->entry;