Fix edge case where leftover pushes would occasionally cause infinite loops in
the analysis.
This commit is contained in:
parent
73d7e89c32
commit
65e75be42d
1 changed files with 5 additions and 0 deletions
|
@ -107,6 +107,11 @@ static void convert_block(struct procedure* proc, struct basicblock* bb)
|
|||
}
|
||||
}
|
||||
|
||||
/* If we didn't actually find anything, give up. */
|
||||
|
||||
if ((pushes.count == 0) || (pops.count == 0))
|
||||
return;
|
||||
|
||||
/* Okay, now we can wire them all up. */
|
||||
|
||||
for (i=0; i<pushes.count; i++)
|
||||
|
|
Loading…
Reference in a new issue