aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir.c
diff options
context:
space:
mode:
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;