Skip to content

IRGen: fix a corner-case wherein a partial_apply was not converted in LoadableByAddress #14187

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 1 commit into from
Jan 26, 2018

Conversation

shajrawi
Copy link

@shajrawi shajrawi commented Jan 26, 2018

rdar://problem/36826848

fix a corner-case wherein a partial_apply was not converted in LoadableByAddress
It also cleans up shouldTransformParameter, fixing a corner-case for optional function parameter, and re-creates all partial applies that only contain function/optional function parameters

… LoadableByAddress

It cleans up shouldTransformParameter, fixing a corner-case for optional function parameter, and re-creates *all* partial applies that only contain function/optional function parameters
@shajrawi
Copy link
Author

@swift-ci Please smoke test

@shajrawi shajrawi changed the title IRGen: fix a corner-case wherein a partial_apply was not converted in oadableByAddress IRGen: fix a corner-case wherein a partial_apply was not converted in LoadableByAddress Jan 26, 2018
Copy link
Contributor

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

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

LGTM for swift-4.1-branch

@shajrawi shajrawi merged commit 02fcdf1 into swiftlang:master Jan 26, 2018
@shajrawi shajrawi deleted the fix_part_apply branch January 26, 2018 19:29
shajrawi pushed a commit that referenced this pull request Jan 26, 2018
IRGen: fix a corner-case wherein a partial_apply was not converted in LoadableByAddress
@jrose-apple
Copy link
Contributor

This broke with a non-optimized stdlib, https://ci.swift.org/view/Dashboard/job/oss-swift_tools-RA_stdlib-DA_test-simulator/177/. I'm going to disable the test in that configuration for now, but that seems like a bug—optimization shouldn't affect calling conventions here, no?

@jrose-apple
Copy link
Contributor

#14217

@shajrawi
Copy link
Author

Thanks for fixing that! It does call into the standard library, the array operation, for which the signature is different in an optimized build...

@jrose-apple
Copy link
Contributor

It seems like you'd need to change the test anyway to deal with -enable-resilience. After all, the test will be permanently unsupported after that.

shajrawi pushed a commit that referenced this pull request Jan 29, 2018
Merge pull request #14187 from shajrawi/fix_part_apply
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