Skip to content

[ObjC] Handle tail calls to objc_msgSend when applying call type adjustments #7084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 13, 2025

Conversation

bdash
Copy link
Contributor

@bdash bdash commented Jul 11, 2025

Moves the ResolveMethodCalls activity after core.function.translateTailCalls so tail calls are represented explicitly in LLIL, then updates inlineMethodCalls to process them.

While looking at this I spotted and fixed an off-by-one error that was causing the first stub function in __objc_stubs to be skipped.

Fixes #7060.

bdash added a commit that referenced this pull request Jul 11, 2025
@bdash bdash force-pushed the objc-adjust-tailcall-types branch from a900f01 to 6706cc8 Compare July 13, 2025 17:22
@bdash bdash merged commit 6706cc8 into dev Jul 13, 2025
1 check passed
@bdash bdash deleted the objc-adjust-tailcall-types branch July 13, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ObjC] Call type override on objc_msgSend stub is not respected resulting in missing arguments
1 participant