Skip to content

Conversation

jckarter
Copy link
Contributor

Explanation: When capturing from a nested context, we would treat the captured value as a distinct variable in the nested context, causing the variable to be copied instead of shared with the outer context.

Scope: Silent miscompile. Regression from 4.1

Issue: SR-8398 | rdar://problem/42742744

Risk: Low, the change is limited in scope and should only impact capture emission.

Testing: Swift CI, test case from SR, compatibility suite

Author: @gregomni

Reviewed by: @slavapestov

gregomni and others added 6 commits August 14, 2018 09:51
…l to appear in the transitive capture list only once, not potentially repeated with different flags.
…ll be more clear that dealing with this will be required if more flags are added in the future. And mergeFlags correctly on the dynamic self capture.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@swift-ci Please nominate

@jckarter
Copy link
Contributor Author

@swift-ci Please test source compatibility

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