Skip to content

Runtime: Fix swift_bridgeObjectRetain family of functions to return the input object #16213

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

Now we can use swift_bridgeObjectRetain's return value in BridgeObjectBox.

…he input

object

Now we can use swift_bridgeObjectRetain's return value in BridgeObjectBox.
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this fix much better!

@aschwaighofer aschwaighofer merged commit 0808744 into swiftlang:master Apr 27, 2018
@bob-wilson
Copy link
Contributor

Should we also have changes in Swift's code generation to take advantage of this?

@aschwaighofer
Copy link
Contributor Author

@bob-wilson #16284

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.

3 participants