mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Kill dag leaf nodes on assignment.
Fixes the failing swap test caused by a's original value being used (via t) after being written.
This commit is contained in:
parent
cb366dd825
commit
2fcda44ab0
1 changed files with 5 additions and 0 deletions
|
@ -475,6 +475,11 @@ dagnode_attach_label (dagnode_t *n, daglabel_t *l)
|
|||
internal_error (0, "attempt to attach non-identifer label to dagnode "
|
||||
"identifiers");
|
||||
if (l->dagnode) {
|
||||
// if the node is a leaf, then kill its value so no attempt is made
|
||||
// to reuse it.
|
||||
if (l->dagnode->type == st_none) {
|
||||
l->dagnode->killed = 1;
|
||||
}
|
||||
dagnode_t *node = l->dagnode;
|
||||
set_union (n->edges, node->parents);
|
||||
set_remove (n->edges, n->number);
|
||||
|
|
Loading…
Reference in a new issue