Skip to content

Commit 8be4f37

Browse files
committed
[ObjC] Don't log when encountering an objc_msgSendSuper2 call from Swift code
1 parent 6e13069 commit 8be4f37

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

plugins/workflow_objc/src/activities/super_init.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ fn return_type_for_super_init(call: &Call, view: &BinaryView) -> Option<Ref<Type
191191

192192
let src_var = match src.kind {
193193
MediumLevelILLiftedInstructionKind::AddressOf(Var { src: src_var }) => src_var,
194-
MediumLevelILLiftedInstructionKind::VarSsa(_)
195-
| MediumLevelILLiftedInstructionKind::Sub(_) => {
194+
_ => {
196195
// The Swift compiler generates code that initializes the `objc_super` variable in more varied ways.
197196
log::debug!(
198197
" 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
201200
);
202201
return None;
203202
}
204-
_ => {
205-
log::error!(
206-
"Unexpected source of variable definition at {:#0x} {:x?}",
207-
super_param_def.address,
208-
super_param_def
209-
);
210-
return None;
211-
}
212203
};
213204

214205
// `src_var` is a `struct objc_super`. Find constant values assigned to the `super_class` field (second field).

0 commit comments

Comments
 (0)