Typo.
This commit is contained in:
parent
7bd4fde684
commit
4bbdb64016
@ -398,7 +398,7 @@ pub fn dominators<N: Idx>(tree: &DominatorTree<N>) -> Dominators<N> {
|
|||||||
let DominatorTree { start_node, ref immediate_dominators, post_order_rank: _ } = *tree;
|
let DominatorTree { start_node, ref immediate_dominators, post_order_rank: _ } = *tree;
|
||||||
|
|
||||||
// Transpose the dominator tree edges, so that child nodes of vertex v are stored in
|
// Transpose the dominator tree edges, so that child nodes of vertex v are stored in
|
||||||
// node[edges[v].start..edges[y].end].
|
// node[edges[v].start..edges[v].end].
|
||||||
let mut edges: IndexVec<N, std::ops::Range<u32>> =
|
let mut edges: IndexVec<N, std::ops::Range<u32>> =
|
||||||
IndexVec::from_elem(0..0, immediate_dominators);
|
IndexVec::from_elem(0..0, immediate_dominators);
|
||||||
for &idom in immediate_dominators.iter() {
|
for &idom in immediate_dominators.iter() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user