mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
Fix the dummy definitions of temp vars.
I forgot to add func->num_statements :P. Fixes the weirdness where only some alias temps were being (bogusly) detected as uninitialized. Now they all are.
This commit is contained in:
parent
b5a72320bb
commit
28c37b367d
1 changed files with 2 additions and 1 deletions
|
@ -382,7 +382,8 @@ flow_build_vars (function_t *func)
|
|||
if (flowvar_is_global (var) || flowvar_is_param (var))
|
||||
continue;
|
||||
if (var->op->op_type == op_temp) {
|
||||
set_add (var->define, func->symtab->space->size + var->number);
|
||||
j = func->symtab->space->size + var->number;
|
||||
set_add (var->define, func->num_statements + j);
|
||||
} else {
|
||||
offset = def_offset (var->op->o.def);
|
||||
size = def_size (var->op->o.def);
|
||||
|
|
Loading…
Reference in a new issue