Change Successors
to impl Iterator<Item = BasicBlock>
This commit is contained in:
parent
56d540e057
commit
38bf1158bd
18 changed files with 54 additions and 55 deletions
|
@ -180,7 +180,7 @@ impl<'a, 'tcx> Postorder<'a, 'tcx> {
|
|||
// two iterations yield `C` and finally `A` for a final traversal of [E, D, B, C, A]
|
||||
loop {
|
||||
let bb = if let Some(&mut (_, ref mut iter)) = self.visit_stack.last_mut() {
|
||||
if let Some(&bb) = iter.next() {
|
||||
if let Some(bb) = iter.next() {
|
||||
bb
|
||||
} else {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue