diff options
| author | Mark Rowe <mark@vector35.com> | 2026-03-23 19:49:56 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2026-03-30 09:19:20 -0700 |
| commit | 20adc82b8f85a78fe2cd6ddc2b3a8c78558999a5 (patch) | |
| tree | e89c4e5ce635669af210bd9468a89172ef590992 /plugins/workflow_objc/src/activities/super_init.rs | |
| parent | efbde23abcf1f38d98a096044e2256c5619f9004 (diff) | |
[ObjC] Set return type on objc_msgSend calls that send an init message to a known class
Diffstat (limited to 'plugins/workflow_objc/src/activities/super_init.rs')
| -rw-r--r-- | plugins/workflow_objc/src/activities/super_init.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/workflow_objc/src/activities/super_init.rs b/plugins/workflow_objc/src/activities/super_init.rs index 81b9a453..7b6bb3f7 100644 --- a/plugins/workflow_objc/src/activities/super_init.rs +++ b/plugins/workflow_objc/src/activities/super_init.rs @@ -39,8 +39,7 @@ fn return_type_for_super_init(call: &util::Call, view: &BinaryView) -> Option<Re util::match_constant_pointer_or_load_of_constant_pointer(&call.call.params[1])?; let selector = Selector::from_address(view, selector_addr).ok()?; - // TODO: This will match `initialize` and `initiate` which are not init methods. - if !selector.name.starts_with("init") { + if !selector.is_init_family() { return None; } |
