Skip to content

[Parser] Condense redundant pop values - #6339

Merged
ashleynh merged 1 commit into
mainfrom
combined_pop
Feb 23, 2024
Merged

[Parser] Condense redundant pop values#6339
ashleynh merged 1 commit into
mainfrom
combined_pop

Conversation

@ashleynh

@ashleynhashleynh commented Feb 23, 2024

Copy link
Copy Markdown
Collaborator

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

@tlivelytlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup!

Comment threadsrc/wasm/wasm-ir-builder.cpp Outdated
return values[0];
} else {
return builder.makeTupleMake(values);
return pop(numValues);

Copy link
Copy Markdown
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

@ashleynhashleynh changed the title [Parser] Condense redundant pop values code[Parser] Condense redundant pop valuesFeb 23, 2024
@ashleynh
ashleynh merged commit e3450ca into mainFeb 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().
@gkdngkdn mentioned this pull request Aug 31, 2024
Sign up for freeto 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

@ashleynh@tlively