Skip to content

IRGen: emitObjCMetadataRef needs to handle weakly linked Objective C … #5049

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

Conversation

aschwaighofer
Copy link
Contributor

…classes which maybe null

WIP, test case to follow ...

rdar://28203571

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test os x platform

@aschwaighofer aschwaighofer force-pushed the fix_irgen_emitObjCMetadataRef branch from 3a605b7 to 6b32dd2 Compare September 28, 2016 19:31
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@aschwaighofer
Copy link
Contributor Author

@jckarter Can you review this? I would also like to pull this into swift-3.0-branch.

@jckarter
Copy link
Contributor

Looks good as a quick fix. It might be better for code size and robustness to move the null check into the swift_getObjCClassMetadata runtime call.

@aschwaighofer
Copy link
Contributor Author

Good point.

@aschwaighofer aschwaighofer force-pushed the fix_irgen_emitObjCMetadataRef branch from 6b32dd2 to d3ef6f7 Compare September 28, 2016 21:52
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test linux platform

@aschwaighofer aschwaighofer merged commit 79cd818 into swiftlang:master Sep 28, 2016
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.

4 participants