-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Conversation
…sence of spilling in its either branch Fixes dotnet#74115.
@dotnet/roslyn-compiler Please review |
1 similar comment
@dotnet/roslyn-compiler Please review |
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenRefConditionalOperatorTests.cs
Show resolved
Hide resolved
There was a problem hiding this 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.
@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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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)
Fixes #74115.