Skip to content

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!

return values[0];
} 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
@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.

3 participants