Skip to content

Commit bb13c35

Browse files
authored
dfs_pre_order_mut: Visit legacy try blocks (#296)
1 parent cf36e81 commit bb13c35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ir/traversals.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ pub fn dfs_pre_order_mut(
261261
stack.push(*seq);
262262
}
263263

264+
Instr::Try(Try { seq, catches }) => {
265+
for catch in catches.iter_mut() {
266+
catch.visit_mut(visitor);
267+
}
268+
stack.push(*seq);
269+
}
270+
264271
_ => {}
265272
}
266273
}

0 commit comments

Comments
 (0)