diff options
| author | 2023-06-05 10:59:44 +0200 | |
|---|---|---|
| committer | 2023-06-05 10:59:44 +0200 | |
| commit | d8ba699bae286cb29a6a965ee204804649f0bbc8 (patch) | |
| tree | e39f855157b1b7ec592ad19407f83865fba1fea2 /irdump.c | |
| parent | ed47a54958f5bd48dc364d4a0f77f778768696bb (diff) | |
style
Diffstat (limited to 'irdump.c')
| -rw-r--r-- | irdump.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -76,14 +76,14 @@ dumpref(enum op o, union ref ref) { struct xcon *con; switch (ref.t) { - case RTMP: efmt("%%%d", ref.idx); break; - case RPARAM: efmt("%%param%d", ref.idx); break; + case RTMP: efmt("%%%d", ref.i); break; + case RPARAM: efmt("%%param%d", ref.i); break; case RICON: if (o == Ointrin) efmt("\"%s\"", intrinname[ref.i]); else efmt("%d", ref.i); break; case RXCON: - con = &conht[ref.idx]; + con = &conht[ref.i]; if (con->issym) efmt("$%s", con->sym); else switch (con->cls) { case KI4: efmt("%d", con->i4); break; @@ -99,7 +99,7 @@ dumpref(enum op o, union ref ref) break; case RMORE: if (o == Ocall || o == Ointrin) { - struct call *call = &calltab.p[ref.idx]; + struct call *call = &calltab.p[ref.i]; if (call->sret) { efmt("sret "); prityp(call->typs[call->narg]); @@ -117,7 +117,7 @@ dumpref(enum op o, union ref ref) dumpref(0, call->args[i]); } } else if (o == Ophi) { - struct phi *phi = &phitab.p[ref.idx]; + struct phi *phi = &phitab.p[ref.i]; for (int i = 0; i < phi->n; ++i) { if (i > 0) efmt(", "); efmt("[@%d ", phi->blk[i]->id); |