Skip to content

Conversation

@jckarter
Copy link
Contributor

A set of fixes that allow for noncopyable values to be used successfully as the base of a property projection in situations where the type is loadable, but the property implementation takes its parameter indirectly.

If SILGen emitted a marker, that ought to be indication enough that move only checking
is necessary.
… base from loadable to in-memory.

The code here was materializing the value in this case, but then re-loading it, which is unnecessary
since call emission will materialize the value to match the callee's calling convention already.
It does look like a copy into formal evaluation scope is necessary to get the correct lifetimes
in some circumstances. The move-only checker doesn't like any additional copies at all because
it thinks they're consumes, so only borrow in the case where the value is move-only.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit 251becb into swiftlang:main Oct 19, 2023
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.

1 participant