mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Fix yet another empty block issue.
I think I need to rework all the code in there, but this will do for now.
This commit is contained in:
parent
f6e5428382
commit
578ad07487
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue