mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Add the label to the block to which it refers.
This commit is contained in:
parent
c158b14286
commit
90a2738459
2 changed files with 4 additions and 0 deletions
|
@ -61,7 +61,9 @@ typedef struct statement_s {
|
|||
typedef struct sblock_s {
|
||||
struct sblock_s *next;
|
||||
struct reloc_s *relocs;
|
||||
struct ex_label_s *labels;
|
||||
int offset; ///< offset of first statement of block
|
||||
int reachable;
|
||||
statement_t *statements;
|
||||
statement_t **tail;
|
||||
} sblock_t;
|
||||
|
|
|
@ -665,6 +665,8 @@ statement_label (sblock_t *sblock, expr_t *e)
|
|||
sblock = sblock->next;
|
||||
}
|
||||
e->e.label.dest = sblock;
|
||||
e->e.label.next = sblock->labels;
|
||||
sblock->labels = &e->e.label;
|
||||
return sblock;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue