Skip to content

partial_apply fixup #1767

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
Mar 22, 2016
Merged

Conversation

jrose-apple
Copy link
Contributor

We do clever tricks to avoid having to serialize the full type of a partial_apply instruction, but those conflicted with our clever tricks for handling unusual return conventions. Make sure we do all type calculations for partial_apply in one place. @slavapestov, does this look correct?

This should allow re-application of e6a519f and 86dcce1.

Also, @rjmccall: is it just me (and Slava) or is this logic for NS_RETURNS_INNER_POINTER not sound at all? (This commit doesn't make that better or worse.)

...and give them a proper "REQUIRES: objc_interop" instead of "XFAIL: linux".
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

We do clever tricks to avoid having to serialize the full type of a
partial_apply instruction, but those conflicted with our clever tricks
for handling unusual return conventions. Make sure we do all type
calculations for partial_apply in one place. (Credit to Slava for
both introducing the problem and immediately seeing how to fix it.)

This should allow re-application of e6a519f and 86dcce1.
@jrose-apple jrose-apple force-pushed the partial_apply-fixup branch from 424e35a to 77265ed Compare March 22, 2016 17:30
@jrose-apple
Copy link
Contributor Author

For the record, this passed its tests. The only update was correcting the mentioned revisions in the commit message.

@slavapestov
Copy link
Contributor

Looks good @jrose-apple. A journey of removing a thousand duplicated lines of code begins with a single patch.

jrose-apple added a commit that referenced this pull request Mar 22, 2016
We do clever tricks to avoid having to serialize the full type of a
partial_apply instruction, but those conflicted with our clever tricks
for handling unusual return conventions. Make sure we do all type
calculations for partial_apply in one place.
@jrose-apple jrose-apple merged commit 5a3df3d into swiftlang:master Mar 22, 2016
@jrose-apple jrose-apple deleted the partial_apply-fixup branch March 22, 2016 20:33
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