mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
035da472ec
commit
3d9410c66d
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue