We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada7f1c commit 8c2c695Copy full SHA for 8c2c695
compiler/rustc_mir_transform/src/ctfe_limit.rs
@@ -47,7 +47,7 @@ fn has_back_edge(
47
return false;
48
}
49
// Check if any of the dominators of the node are also the node's successor.
50
- doms.dominators(node).any(|dom| node_data.terminator().successors().any(|succ| succ == dom))
+ node_data.terminator().successors().any(|succ| doms.dominates(succ, node))
51
52
53
fn insert_counter(basic_block_data: &mut BasicBlockData<'_>) {
0 commit comments