aboutsummaryrefslogtreecommitdiff
path: root/spill.c
diff options
context:
space:
mode:
authorRoland Paterson-Jones <[email protected]>2024-10-22 16:07:43 +0200
committerQuentin Carbonneaux <[email protected]>2025-03-14 09:47:05 +0100
commit434cf5fdc4ba027f0ac04cd198658860b6fc034a (patch)
tree0f2dff83f9295fa4836c79e316d1d168e8a94762 /spill.c
parentca928f6f8d18b4cf3acd1dd4b7443a5631c06af2 (diff)
idup(Ins **, Ins *, ulong) -> idup(Blk *, Ins *, ulong)
Always used this way and factors setting b->nins. Makes b->ins vector contract more obvious.
Diffstat (limited to 'spill.c')
-rw-r--r--spill.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/spill.c b/spill.c
index 2ce1d4f..67c6540 100644
--- a/spill.c
+++ b/spill.c
@@ -517,8 +517,7 @@ spill(Fn *fn)
p->to = slot(p->to.val);
}
bscopy(b->in, v);
- b->nins = &insb[NIns] - curi;
- idup(&b->ins, curi, b->nins);
+ idup(b, curi, &insb[NIns]-curi);
}
/* align the locals to a 16 byte boundary */