Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Aug 26, 2020

It turned out to be very easy to generalize the existing logic for unfolding foreach loops where the iterator expression is guaranteed non-empty to also include skipping the loop body when the iterator expression is guaranteed empty. This is probably not likely to happen often in practice (the CSharp-Differences job shows no changes in results), but again the change was so small that I thought it was still worthwhile.

@hvitved hvitved added the C# label Aug 26, 2020
@hvitved hvitved force-pushed the csharp/cfg/foreach-loop-empty branch 2 times, most recently from 2bea3b2 to dc064f5 Compare August 31, 2020 12:41
@hvitved hvitved marked this pull request as ready for review September 1, 2020 07:12
@hvitved hvitved requested a review from a team as a code owner September 1, 2020 07:12
tamasvajk
tamasvajk previously approved these changes Sep 7, 2020
@hvitved
Copy link
Contributor Author

hvitved commented Sep 7, 2020

Rebased to resolve merge conflicts in .expected files.

@hvitved
Copy link
Contributor Author

hvitved commented Sep 14, 2020

@tamasvajk : Can you please re-approve? Thanks

@hvitved hvitved merged commit d095d6b into github:main Sep 15, 2020
@hvitved hvitved deleted the csharp/cfg/foreach-loop-empty branch September 15, 2020 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants