Skip to content

[silgen] Require ManagedValue::{forward,assign}Into to only accept pl… #14566

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

gottesmm
Copy link
Contributor

…usOne ManagedValues.

We already have this requirement on RValues.

This also lets me clean up a little bit of code in RValue as well.

@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - eab7304c1ff7f687f6e731f340b8e3254f58117f

@gottesmm
Copy link
Contributor Author

@swift-ci test os x platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - eab7304c1ff7f687f6e731f340b8e3254f58117f

@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci source compatibility

@gottesmm
Copy link
Contributor Author

@swift-ci test source compatibility

@gottesmm
Copy link
Contributor Author

I am going to land the 3 sub patches in separate PRs and then commit only the last commit in this PR. It passed the source compat suite, so we should be ok.

@gottesmm
Copy link
Contributor Author

The other 3 PRs are: #14638, #14639, #14641

…usOne ManagedValues.

We already have this requirement on RValues, so it is natural to extend it to
ManagedValue. The main reason why I am doing this though is to tighten up SILGen
asserts to help me catch places where we forward +0 arguments into memory
without a copy/cleanup.

rdar://34222540
@gottesmm gottesmm force-pushed the pr-84f4d6b1f77131475b5abc2cd80f73ca6049bbaa branch from 7b0204a to 713e5f9 Compare February 14, 2018 22:00
@gottesmm
Copy link
Contributor Author

@swift-ci test

1 similar comment
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7b0204afdc0ec4c60af7a1361c8bf5a311148b50

@gottesmm
Copy link
Contributor Author

@swift-ci test source compatibility

@gottesmm gottesmm changed the title [NO MERGE][silgen] Require ManagedValue::{forward,assign}Into to only accept pl… [silgen] Require ManagedValue::{forward,assign}Into to only accept pl… Feb 14, 2018
@gottesmm
Copy link
Contributor Author

1 word to say: WOOT!

@gottesmm gottesmm merged commit c110f0b into swiftlang:master Feb 15, 2018
@gottesmm gottesmm deleted the pr-84f4d6b1f77131475b5abc2cd80f73ca6049bbaa branch February 15, 2018 00:01
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