Skip to content
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

SpillSequenceSpiller – preserve ref BoundConditionalOperator in presence of spilling in its either branch #74310

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

AlekseyTs
Copy link
Contributor

Fixes #74115.

@AlekseyTs AlekseyTs requested a review from a team as a code owner July 9, 2024 15:07
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jul 9, 2024
@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review

1 similar comment
@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Generally LGTM, but I would suggest adding one of the test cases from the original bug as well.

@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler For the second review

consequenceBuilder.Free();
alternativeBuilder.Free();

// 3. Use updated conditional operator as the result. Note, we are using the captured temp as its condition,
Copy link
Member

Choose a reason for hiding this comment

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

Use updated conditional operator as the result

nit: consider calling out that we want to use the original node to maintain proper refness

@jcouv jcouv self-assigned this Jul 15, 2024
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Language Feature - Ref Locals and Returns Ref Locals and Returns untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
4 participants