mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Fix a warning
This commit is contained in:
parent
ffba3429fb
commit
f06a59e3c7
2 changed files with 3 additions and 1 deletions
3
ir.c
3
ir.c
|
@ -1997,6 +1997,7 @@ void ir_function_enumerate(ir_function *self)
|
|||
/* each block now gets an additional "entry" instruction id
|
||||
* we can use to avoid point-life issues
|
||||
*/
|
||||
self->blocks[i]->entry_id = instruction_id;
|
||||
++instruction_id;
|
||||
|
||||
self->blocks[i]->eid = i;
|
||||
|
@ -2625,7 +2626,7 @@ static bool ir_block_life_propagate(ir_block *self, ir_block *prev, bool *change
|
|||
*changed = *changed || tempbool;
|
||||
}
|
||||
/* the "entry" instruction ID */
|
||||
tempbool = ir_block_living_add_instr(self, instr->eid-1);
|
||||
tempbool = ir_block_living_add_instr(self, self->entry_id);
|
||||
*changed = *changed || tempbool;
|
||||
|
||||
if (self->run_id == self->owner->run_id)
|
||||
|
|
1
ir.h
1
ir.h
|
@ -171,6 +171,7 @@ typedef struct ir_block_s
|
|||
ir_value **living;
|
||||
|
||||
/* For the temp-allocation */
|
||||
size_t entry_id;
|
||||
size_t eid;
|
||||
bool is_return;
|
||||
size_t run_id;
|
||||
|
|
Loading…
Reference in a new issue