[qfcc] Force overlap to 0 for non-alias def/temops

Make the code behave as intended: visiting all aliases when starting
with the real def/tempop regardless of the overlap setting.
This commit is contained in:
Bill Currie 2020-03-08 16:53:28 +09:00
parent 035da472ec
commit 3d9410c66d
2 changed files with 4 additions and 0 deletions

View file

@ -807,6 +807,8 @@ def_visit_all (def_t *def, int overlap,
def = def->alias;
if ((ret = visit (def, data)))
return ret;
} else {
overlap = 0;
}
for (def = def->alias_defs; def; def = def->next) {
if (def == start_def)

View file

@ -393,6 +393,8 @@ tempop_visit_all (tempop_t *tempop, int overlap,
tempop = &top->o.tempop;
if ((ret = visit (tempop, data)))
return ret;
} else {
overlap = 0;
}
for (top = tempop->alias_ops; top; top = top->next) {
if (top->op_type != op_temp) {