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

go/ir: do not panic on generic type slice expression #1271

Closed
wants to merge 1 commit into from

Conversation

tdakkota
Copy link
Contributor

@tdakkota tdakkota commented May 11, 2022

Fixes #1270.

@tdakkota
Copy link
Contributor Author

I did not add a regression test, because I am not sure what testdata directory is related to ir package.

@tdakkota tdakkota marked this pull request as ready for review May 11, 2022 11:02
@dominikh
Copy link
Owner

I did not add a regression test, because I am not sure what testdata directory is related to ir package.

No worries. go/ir doesn't have great regression tests to begin with, and mostly relies on the fact that someone will complain if it starts crashing again…

Thanks for the PR.

@dominikh dominikh closed this in 67bbe3d May 11, 2022
dominikh pushed a commit that referenced this pull request May 16, 2022
Closes: gh-1270
Closes: gh-1271 [via git-merge-pr]
Co-authored-by: Dominik Honnef <[email protected]>
(cherry picked from commit 67bbe3d)
dominikh pushed a commit that referenced this pull request May 16, 2022
Closes: gh-1270
Closes: gh-1271 [via git-merge-pr]
Co-authored-by: Dominik Honnef <[email protected]>
(cherry picked from commit 67bbe3d)
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.

go/ir: nil pointer dereference panic
2 participants