aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 11:20:43 +0200
committerlemon <lsof@mailbox.org>2023-06-04 11:20:43 +0200
commitb295cd602d59888c373819ec3bcd63e12f008702 (patch)
tree8e3a6b6c0262451b040659e67164bb85635a2512 /irdump.c
parent51197251c464a742c5bef5a67c6da222d32b14d3 (diff)
bugfix
Diffstat (limited to 'irdump.c')
-rw-r--r--irdump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/irdump.c b/irdump.c
index 4ff3f61..27f3edc 100644
--- a/irdump.c
+++ b/irdump.c
@@ -63,6 +63,10 @@ dumpref(enum op o, union ref ref)
if (i > 0 || call->sret) efmt(", ");
if (call->vararg == i)
efmt("..., ");
+ if (call->abiargregs) {
+ short r = call->abiargregs[i];
+ efmt("(%ls) ", r != -1 ? mctarg->rnames[r] : "<stk>");
+ }
prityp(call->typs[i]);
efmt(" ");
dumpref(0, call->args[i]);