mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Drop unused labels rather than adding them to the statement block.
However, even unused labels create a new statement block if necessary.
This commit is contained in:
parent
b5e7e666e9
commit
ed901bd48f
1 changed files with 7 additions and 3 deletions
|
@ -827,9 +827,13 @@ statement_label (sblock_t *sblock, expr_t *e)
|
|||
sblock->next = new_sblock ();
|
||||
sblock = sblock->next;
|
||||
}
|
||||
e->e.label.dest = sblock;
|
||||
e->e.label.next = sblock->labels;
|
||||
sblock->labels = &e->e.label;
|
||||
if (e->e.label.used) {
|
||||
e->e.label.dest = sblock;
|
||||
e->e.label.next = sblock->labels;
|
||||
sblock->labels = &e->e.label;
|
||||
} else {
|
||||
debug (e, "dropping unused label %s\n", e->e.label.name);
|
||||
}
|
||||
return sblock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue