Skip to content

Merge pull request #14187 from shajrawi/fix_part_apply #14194

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
Jan 29, 2018

Conversation

shajrawi
Copy link

rdar://problem/36826848

• Explanation: fixes 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
• Scope of Issue: We found this issue via JIRA - it can cause miscompiles in rare cases
• Origination: https://bugs.swift.org/browse/SR-6828
• Risk: Low.
• Reviewed By: Arnold Schwaighofer
• Testing: Swift CI + new test case

@shajrawi
Copy link
Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6d036541738a8b54af0e40bf3b20e9fbd6a461cc

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 6d036541738a8b54af0e40bf3b20e9fbd6a461cc

@shajrawi
Copy link
Author

This is the mangling change between 4.1 and trunk. will change the tests accordingly.

@shajrawi shajrawi force-pushed the load_part_apply_cherry branch from 6d03654 to 61972f2 Compare January 26, 2018 21:42
@swiftlang swiftlang deleted a comment from swift-ci Jan 26, 2018
@swiftlang swiftlang deleted a comment from swift-ci Jan 26, 2018
IRGen: fix a corner-case wherein a partial_apply was not converted in LoadableByAddress
@shajrawi shajrawi force-pushed the load_part_apply_cherry branch from 61972f2 to 2dc2700 Compare January 26, 2018 22:56
@shajrawi
Copy link
Author

@swift-ci Please test

@shajrawi
Copy link
Author

@swift-ci Please test

@shajrawi shajrawi merged commit ac020e0 into swift-4.1-branch Jan 29, 2018
@shajrawi shajrawi deleted the load_part_apply_cherry branch January 29, 2018 22:14
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.

2 participants