aboutsummaryrefslogtreecommitdiffhomepage
path: root/ssa.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssa.c')
-rw-r--r--ssa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssa.c b/ssa.c
index 0db9aaf..46e0741 100644
--- a/ssa.c
+++ b/ssa.c
@@ -30,9 +30,9 @@ ssauses(struct function *fn)
do {
for (int i = 0; i < blk->phi.n; ++i) {
int ins = blk->phi.p[i];
- struct phi *phi = &phitab.p[instrtab[ins].l.i];
- for (int i = 0; i < phi->n; ++i) {
- USE(phi->ref[i], 0, ins);
+ union ref *phi = phitab.p[instrtab[ins].l.i];
+ for (int i = 0; i < blk->npred; ++i) {
+ USE(phi[i], 0, ins);
}
}
for (int i = 0; i < blk->ins.n; ++i) {