Skip to content

Conversation

bdash
Copy link
Contributor

@bdash bdash commented Sep 9, 2025

Calls to objc_msgSendSuper2 with a selector in the init family are detected and their arguments are analyzed to determine the receiver class. A call type adjustment is added to update the return type.

This handles most calls to [super init] from Objective-C code as the compiler generates a straightforward code sequence for these calls. Some calls from Swift are handled, but the Swift compiler generates more varied code so additional work is needed for complete coverage.

Calls to `objc_msgSendSuper2` with a selector in the `init` family are
detected and their arguments are analyzed to determine the receiver
class. A call type adjustment is added to update the return type.

This handles most calls to `[super init]` from Objective-C code as the
compiler generates a straightforward code sequence for these calls. Some
calls from Swift are handled, but the Swift compiler generates more varied
code so additional work is needed for complete coverage.
@bdash bdash force-pushed the test_objc_super_init branch from 4bb3016 to 4fccb2c Compare September 18, 2025 04:38
@bdash bdash merged commit 4fccb2c into dev Sep 18, 2025
9 of 10 checks passed
@bdash bdash deleted the test_objc_super_init branch September 18, 2025 04:42
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.

1 participant