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

[Parser] Condense redundant pop values #6339

Merged
merged 1 commit into from
Feb 23, 2024
Merged

[Parser] Condense redundant pop values #6339

merged 1 commit into from
Feb 23, 2024

Conversation

ashleynh
Copy link
Collaborator

@ashleynh ashleynh commented Feb 23, 2024

A bit of clean-up, changes getBranchValue to use pop().

@ashleynh ashleynh requested a review from tlively February 23, 2024 00:55
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

} else {
return builder.makeTupleMake(values);
return pop(numValues);
Copy link
Member

Choose a reason for hiding this comment

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

This would be nice as a one-liner ternary

@ashleynh ashleynh changed the title [Parser] Condense redundant pop values code [Parser] Condense redundant pop values Feb 23, 2024
@ashleynh ashleynh merged commit e3450ca into main Feb 23, 2024
14 checks passed
@ashleynh ashleynh deleted the combined_pop branch February 23, 2024 03:23
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
A bit of clean-up, changes getBranchValue to use pop().
@gkdn gkdn mentioned this pull request Aug 31, 2024
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