Skip to content

[5.3][CSApply] Always try to load arguments constructing object literals #32491

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
Jun 22, 2020

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 22, 2020

Cherry-pick of #32452


  • Explanation:

AST rewriter needs to make sure that all of the arguments are loaded
since it's currently possible to pass l-value type as an argument to
object literal (#{file, color, image}Literal).

  • Scope: Limited to object literals with l-value arguments.

  • Resolves: rdar://problem/62927467

  • Risk: Low

  • Testing: Added regression tests

  • Reviewer: @DougGregor

Resolves: rdar://problem/62927467
(cherry picked from commit baaff0d)

AST rewriter needs to make sure that all of the arguments are loaded
since it's currently possible to pass l-value type as an argument to
object literal (`#{file, color, image}Literal`).

Resolves: rdar://problem/62927467
(cherry picked from commit baaff0d)
@xedin xedin requested a review from a team as a code owner June 22, 2020 07:28
@xedin
Copy link
Contributor Author

xedin commented Jun 22, 2020

@swift-ci please test

@xedin xedin added the r5.3 label Jun 22, 2020
@xedin xedin merged commit 43b7e9e into swiftlang:release/5.3 Jun 22, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants