From 63e4f9efe17debc7129cb27d29c94bbbbd35bc42 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 30 Sep 2025 22:07:00 -0700 Subject: [ObjC] Silence some more unnecessary logging --- plugins/workflow_objc/src/activities/super_init.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'plugins') diff --git a/plugins/workflow_objc/src/activities/super_init.rs b/plugins/workflow_objc/src/activities/super_init.rs index fc6676e9..cfd3ecdc 100644 --- a/plugins/workflow_objc/src/activities/super_init.rs +++ b/plugins/workflow_objc/src/activities/super_init.rs @@ -4,8 +4,8 @@ use binaryninja::{ function::Function, medium_level_il::{ operation::{ - Constant, LiftedCallSsa, LiftedLoadSsa, LiftedSetVarSsa, LiftedSetVarSsaField, - LiftedVarPhi, Var, VarSsa, + Constant, LiftedCallSsa, LiftedLoadSsa, LiftedSetVarSsa, LiftedSetVarSsaField, Var, + VarSsa, }, MediumLevelILFunction, MediumLevelILLiftedInstruction, MediumLevelILLiftedInstructionKind, }, @@ -169,18 +169,9 @@ fn return_type_for_super_init(call: &Call, view: &BinaryView) -> Option src, - MediumLevelILLiftedInstructionKind::VarPhi(LiftedVarPhi { .. }) => { + _ => { // The Swift compiler generates code that conditionally assigns to the receiver field of `objc_super`. - // TODO: Recognize that pattern and handle it. log::debug!( - " found phi node for definition of `objc_super` variable at {:#0x} {:?}", - super_param_def.address, - super_param_def - ); - return None; - } - _ => { - log::error!( "Unexpected variable definition kind at {:#0x} {:#x?}", super_param_def.address, super_param_def -- cgit v1.3.1