Skip to content

Commit

Permalink
fix: update usage of cfg.pred_iter to cfg.predecessors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed May 2, 2023
1 parent dc1522e commit f8a8933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_evaluator/src/ssa_refactor/ir/dom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl DominatorTree {
// Get an iterator with just the reachable, already visited predecessors to `block_id`.
// Note that during the first pass `node` was pre-populated with all reachable blocks.
let mut reachable_preds =
cfg.pred_iter(block_id).filter(|pred_id| self.nodes.contains_key(pred_id));
cfg.predecessors(block_id).filter(|pred_id| self.nodes.contains_key(pred_id));

// This function isn't called on unreachable blocks or the entry block, so the reverse
// post-order will contain at least one predecessor to this block.
Expand Down

0 comments on commit f8a8933

Please sign in to comment.