diff options
| author | Mark Rowe <mark@vector35.com> | 2025-09-24 09:58:29 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-09-25 14:39:52 -0700 |
| commit | 8be4f37a4064df7eb5ce19389d6d8a35d67c54f8 (patch) | |
| tree | e07aa259c7856f87b2a8431b6ab1cceceb026404 /plugins/workflow_objc | |
| parent | 6e1306923c60b3d6c1cefb1fcc240f1a064d6f20 (diff) | |
[ObjC] Don't log when encountering an objc_msgSendSuper2 call from Swift code
Diffstat (limited to 'plugins/workflow_objc')
| -rw-r--r-- | plugins/workflow_objc/src/activities/super_init.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/workflow_objc/src/activities/super_init.rs b/plugins/workflow_objc/src/activities/super_init.rs index ab458617..fc6676e9 100644 --- a/plugins/workflow_objc/src/activities/super_init.rs +++ b/plugins/workflow_objc/src/activities/super_init.rs @@ -191,8 +191,7 @@ fn return_type_for_super_init(call: &Call, view: &BinaryView) -> Option<Ref<Type let src_var = match src.kind { MediumLevelILLiftedInstructionKind::AddressOf(Var { src: src_var }) => src_var, - MediumLevelILLiftedInstructionKind::VarSsa(_) - | MediumLevelILLiftedInstructionKind::Sub(_) => { + _ => { // The Swift compiler generates code that initializes the `objc_super` variable in more varied ways. log::debug!( " found non-address-of variable definition of `objc_super` variable at {:#0x} {:?}", @@ -201,14 +200,6 @@ fn return_type_for_super_init(call: &Call, view: &BinaryView) -> Option<Ref<Type ); return None; } - _ => { - log::error!( - "Unexpected source of variable definition at {:#0x} {:x?}", - super_param_def.address, - super_param_def - ); - return None; - } }; // `src_var` is a `struct objc_super`. Find constant values assigned to the `super_class` field (second field). |
