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

restore missing parentheses #4600

Merged
merged 2 commits into from
Apr 5, 2024
Merged

restore missing parentheses #4600

merged 2 commits into from
Apr 5, 2024

Conversation

grg
Copy link
Contributor

@grg grg commented Apr 5, 2024

Restore parentheses that were accidentally dropped from begin call as part of recent code improvements (#4513).

Restore parentheses that were accidentally dropped from begin call as
part of recent code improvements (#4513).
@grg grg requested a review from asl April 5, 2024 14:34
@grg grg marked this pull request as ready for review April 5, 2024 14:34
@grg grg requested a review from vlstill April 5, 2024 14:34
Copy link
Contributor

@asl asl left a comment

Choose a reason for hiding this comment

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

Looks like this case is not covered by anything :(

@grg
Copy link
Contributor Author

grg commented Apr 5, 2024

Looks like this case is not covered by anything :(

The test case is the Tofino compiler 🤣 (It's been a couple of months since we last synced with this repo, hence only hitting this issue now.)

I'm going to add a test case, either as part of this PR or a separate PR. Tagged you as a reviewer without the tests in case there's a use case that you are aware of where the lack of parentheses was valid.

@grg
Copy link
Contributor Author

grg commented Apr 5, 2024

I've added a single test for ValuesToKeys (which uses MapForKey). It fails to compile without my fix, but compiles and passes with my fix.

@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Apr 5, 2024
@grg grg enabled auto-merge April 5, 2024 22:51
@grg grg added this pull request to the merge queue Apr 5, 2024
Merged via the queue into main with commit bc5346d Apr 5, 2024
17 checks passed
@grg grg deleted the grgibb/mapforkey_fix branch April 5, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants