Skip to content

LargeLoadableTypes: Support applies of objc applies #15693

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
Apr 3, 2018

Conversation

shajrawi
Copy link

@shajrawi shajrawi commented Apr 2, 2018

radar rdar://problem/39036867

Fixes a bug where we have an apply of an AppleSite that returns a large type.
Normally, we should change the ‘apply’ to one that returns @out of the large type.
This, however, does not hold true if the ApplySite got the old calling conventions - detect and avoid changing that case.

Fixes a bug where we have an apply of an AppleSite that returns a large type.
Normally, we should change the ‘apply’ to one that returns @out of the large type.
This, however, does not hold true if the ApplySite got the old calling conventions - detect and avoid changing that case.
@shajrawi shajrawi requested a review from aschwaighofer April 2, 2018 23:01
@shajrawi
Copy link
Author

shajrawi commented Apr 2, 2018

@swift-ci Please test

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

Suggestion for improvement (not for this commit):

  • It would be nice to be able to dump the SIL before and after this pass (you could add cl::opt flag to do this). This would help debugging these (sil-print-all is more of a pain to look at) and more importantly we could write tests that FileCheck the out put of this pass.

@shajrawi shajrawi merged commit ce32847 into swiftlang:master Apr 3, 2018
@shajrawi shajrawi deleted the large_load_bugfix_small branch April 4, 2018 23:50
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