From 578ad074874834e6a278f9cdf6326fdf1a164578 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 25 Nov 2012 15:01:36 +0900 Subject: [PATCH] Fix yet another empty block issue. I think I need to rework all the code in there, but this will do for now. --- tools/qfcc/source/statements.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index e0fa3eb77..1526d026d 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -1352,7 +1352,8 @@ remove_dead_blocks (sblock_t *blocks) continue; } s = (statement_t *) sblock->tail; - if (is_conditional (s) && is_goto (sb->statements) + if (is_conditional (s) + && sb->statements && is_goto (sb->statements) && s->opb->o.label->dest == sb->next) { debug (0, "merging if/goto %p %p", sblock, sb); unuse_label (s->opb->o.label);