Skip to content

Commit 288edd3

Browse files
committed
[ObjC] Don't assume that all calls to objc_msgSend have parameters
1 parent 43e85c4 commit 288edd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/workflow_objc/src/activities/objc_msg_send_calls.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ fn selector_from_call(
151151
};
152152

153153
let param_exprs = params.param_exprs();
154+
if param_exprs.is_empty() {
155+
return None;
156+
}
157+
154158
let param_exprs =
155159
if let LowLevelILExpressionKind::SeparateParamListSsa(params) = &param_exprs[0].kind() {
156160
params.param_exprs()

0 commit comments

Comments
 (0)