mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
[qfcc] Avoid defining whole temp via alias
Like defs, a partial write should not define the whole temp. Thus, copy the "don't visit main" behavior recently added to def_visit_all. Fixes missing ud-chains for component-by-component assignments to temporary vectors.
This commit is contained in:
parent
8f6e145257
commit
38fd09573f
1 changed files with 2 additions and 1 deletions
|
@ -452,8 +452,9 @@ tempop_visit_all (tempop_t *tempop, int overlap,
|
|||
internal_error (top->expr, "temp alias of non-temp operand");
|
||||
}
|
||||
tempop = &top->tempop;
|
||||
if ((ret = visit (tempop, data)))
|
||||
if (!(overlap & 4) && (ret = visit (tempop, data)))
|
||||
return ret;
|
||||
overlap &= ~4;
|
||||
} else {
|
||||
overlap = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue