1
Fork 0

don't into self

don't into()-convert types to themselves
This commit is contained in:
Matthias Krüger 2023-02-16 00:19:16 +01:00
parent af3c8b2726
commit a1a6588162
3 changed files with 4 additions and 5 deletions

View file

@ -47,8 +47,7 @@ fn has_back_edge(
return false;
}
// Check if any of the dominators of the node are also the node's successor.
doms.dominators(node)
.any(|dom| node_data.terminator().successors().into_iter().any(|succ| succ == dom))
doms.dominators(node).any(|dom| node_data.terminator().successors().any(|succ| succ == dom))
}
fn insert_counter(basic_block_data: &mut BasicBlockData<'_>) {