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:
Bill Currie 2012-12-11 12:27:23 +09:00
parent b5a72320bb
commit 28c37b367d

View file

@ -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);