summaryrefslogtreecommitdiff
path: root/plugins/workflow_objc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/workflow_objc')
-rw-r--r--plugins/workflow_objc/src/activities/super_init.rs11
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).