Skip to content

Commit

Permalink
chapter11: fix loops in walk_unreach
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertObkircher committed Jan 1, 2025
1 parent 181e126 commit 4a162b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sea_of_nodes/nodes/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Cfg {
}
self.cfg(0, sea).unwrap().walk_unreach(visit, unreach, sea);
}
TypedNode::Region(_) => {
TypedNode::Region(_) | TypedNode::Loop(_) => {
for i in 1..this.inputs(sea).len() {
self.cfg(i, sea).unwrap().walk_unreach(visit, unreach, sea);
}
Expand Down

0 comments on commit 4a162b7

Please sign in to comment.