Skip to content
Snippets Groups Projects

Add (dynamic) constants and types to editor

Merged Ryan Ziegler requested to merge ryanjz2/hercules-onnx:editor-types-constants into main
All threads resolved!
Files
4
+ 1
1
@@ -25,7 +25,7 @@ pub fn dce(editor: &mut FunctionEditor) {
// If a node on the worklist has 0 users, delete it. Add its uses onto
// the worklist.
if editor.users(work).len() == 0 {
if editor.get_users(work).len() == 0 {
let uses = get_uses(&editor.func().nodes[work.idx()]);
let success = editor.edit(|edit| edit.delete_node(work));
if success {
Loading