Skip to content
Snippets Groups Projects

Fix delete uncalled bugs

Merged Aaron Councilman requested to merge delete-uncalled-fix into main
2 files
+ 11
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,6 +50,11 @@ pub fn delete_uncalled(
// that all nodes in all functions will be mutable, so panic if any
// edit fails.
for editor in editors.iter_mut() {
// Don't make edits to dead functions as they may include calls to dead functions
if new_idx[editor.func_id().idx()].is_none() {
continue;
}
let callsites: Vec<_> = editor
.node_ids()
.filter(|id| editor.func().nodes[id.idx()].is_call())
Loading