aboutsummaryrefslogtreecommitdiffhomepage
path: root/regalloc.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-20 10:58:17 +0200
committerlemon <lsof@mailbox.org>2023-06-20 11:25:51 +0200
commit3b9071be52359388a4a1db6b48636f6c4934b9ad (patch)
treea65aed400b3767966f6963dd4cdd3f8cb1ff1b2f /regalloc.c
parent945d17aff2aa92dd1fbb0304d4ee7ab5ea6ce496 (diff)
don't lower params and args to registers in abi0
it's better to do it later, currently in isel(), but perhaps in a pre-isel abi1 pass
Diffstat (limited to 'regalloc.c')
-rw-r--r--regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regalloc.c b/regalloc.c
index 1b3b765..b3dc694 100644
--- a/regalloc.c
+++ b/regalloc.c
@@ -320,7 +320,7 @@ regalloc(struct function *fn)
spill(&ra, r, blk, i);
}
for (int j = 0; j < call->narg; ++j) {
- short reg = call->abiargregs[j];
+ short reg = call->abiarg[j].reg;
if (reg >= 0) {
forcetake(&ra, reg, mkref(RREG, reg), blk, i);
}