Skip to content

[SILInliner] Only lifetime args with ownership. #39722

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

Conversation

nate-chandler
Copy link
Contributor

Previously, after #39712, lexical lifetimes were added for arguments whose parameter convention was guaranteed. Those lexical borrow scopes were added regardless of the ownership of the argument values. Here, the lifetimes are only added for argument values whose ownership is owned or guaranteed.

@nate-chandler nate-chandler force-pushed the lexical_lifetimes/only-owned-or-guaranteed-arg-conventions-when-inlining branch from 35c6a73 to 50198f8 Compare October 13, 2021 20:10
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 50198f8a1a90ed80b96d0947a51e63cd4240ae37

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test linux platform

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

I'm confused by this comment, but otherwise seems fine...

@nate-chandler nate-chandler force-pushed the lexical_lifetimes/only-owned-or-guaranteed-arg-conventions-when-inlining branch from 50198f8 to 062cd75 Compare October 14, 2021 22:04
@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test and merge

Previously, after swiftlang#39712, lexical
lifetimes were added for arguments whose parameter convention was
guaranteed.  Those lexical borrow scopes were added regardless of the
ownership of the values which were passed as those arguments.  Here, the
lifetimes are only added for argument values which have ownership.
@nate-chandler nate-chandler force-pushed the lexical_lifetimes/only-owned-or-guaranteed-arg-conventions-when-inlining branch from 062cd75 to 09dd182 Compare October 15, 2021 02:27
@nate-chandler
Copy link
Contributor Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit ea82df3 into swiftlang:main Oct 15, 2021
@nate-chandler nate-chandler deleted the lexical_lifetimes/only-owned-or-guaranteed-arg-conventions-when-inlining branch October 15, 2021 15:59
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