summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-06-11 13:10:37 -0400
committerOri Bernstein <orib@google.com>2012-06-11 13:10:37 -0400
commita8a99dd9a47f30f7d50492650345e9dc346b57db (patch)
tree28cab6d367f146d6ae721766c1c5f2e71d33b21d
parent5cf89f06e6dc31901b495ad16adc1cd93f586ebf (diff)
downloadmc-a8a99dd9a47f30f7d50492650345e9dc346b57db.tar.gz
Put the BB into the fix list instead of the node.
That way, we're trying to fix the right things.
-rw-r--r--opt/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opt/df.c b/opt/df.c
index 08b864c..890e1e6 100644
--- a/opt/df.c
+++ b/opt/df.c
@@ -40,7 +40,7 @@ int addnode(Cfg *cfg, Bb *bb, Node *n)
case Ocjmp:
lappend(&bb->nl, &bb->nnl, n);
lappend(&cfg->fixjmp, &cfg->nfixjmp, n);
- lappend(&cfg->fixblk, &cfg->nfixblk, n);
+ lappend(&cfg->fixblk, &cfg->nfixblk, bb);
return 1;
break;
default:
@@ -56,7 +56,7 @@ Cfg *mkcfg(Node **nl, int nn)
Bb *bb, *targ;
Node *a, *b;
int i;
-
+
cfg = zalloc(sizeof(Cfg));
cfg->lblmap = mkht(strhash, streq);
bb = mkbb(cfg);