From eabcd1c6ec928cb596faa043199069ce1a167e4f Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 15 Sep 2025 22:45:34 -0400 Subject: Deprecate some Rust MediumLevelILFunction methods in favor of Function implementations --- plugins/warp/src/plugin/workflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/warp/src') diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index 47f4b2a7..9871f5d2 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -200,7 +200,7 @@ pub fn insert_workflow() -> Result<(), ()> { decl_instr.variable_for_stack_location_after(offset) } }; - if mlil.is_var_user_defined(&decl_var) { + if function.is_var_user_defined(&decl_var) { // Internally, analysis will just assign user vars to auto vars and consult only that. // So we must skip if there is a user-defined var at the decl. continue; @@ -217,7 +217,7 @@ pub fn insert_workflow() -> Result<(), ()> { let decl_name = variable .name .unwrap_or_else(|| function.variable_name(&decl_var)); - mlil.create_auto_var(&decl_var, &decl_ty, &decl_name, false) + function.create_auto_var(&decl_var, &decl_ty, &decl_name, false) } } } -- cgit v1.3.1