diff options
| author | WormHeamer | 2025-08-08 21:38:51 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-08 21:38:51 -0400 |
| commit | ce6e7ba4d5c57aa147691ec10dd4a9ee854b379d (patch) | |
| tree | 63c68c72473bc9c2223b5c67a242ad042f441a14 | |
| parent | 7b235b3aab2bf22405e63f4f55114fca3c284185 (diff) | |
slightly tweak node_set_in
| -rw-r--r-- | ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,8 +175,8 @@ void node_add_in(Proc *p, Node *a, Node *b) { void node_set_in(Proc *p, Node *n, int idx, Node *to) { Node *in = n->in.data[idx]; if (in) in->refs--; - node_del_out(in, n); node_add_out(p, to, n); + node_del_out(in, n); n->in.data[0] = to; if (in->out.len < 1) node_kill(in, p); } |
