mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
properly clear predecessors in fillpreds
This commit is contained in:
parent
935ab611f0
commit
11db0b61d9
@ -86,9 +86,9 @@ struct Blk {
|
||||
} jmp;
|
||||
Blk *s1;
|
||||
Blk *s2;
|
||||
Blk *link;
|
||||
|
||||
char name[NString];
|
||||
Blk *link;
|
||||
Blk **preds;
|
||||
int npreds;
|
||||
};
|
||||
|
||||
@ -23,6 +23,7 @@ fillpreds(Fn *f)
|
||||
for (b=f->start; b; b=b->link) {
|
||||
b->npreds = 0;
|
||||
free(b->preds);
|
||||
b->preds = 0;
|
||||
}
|
||||
for (b=f->start; b; b=b->link) {
|
||||
if (b->s1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user