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

cmd/compile: extendslice contains n.SetLikely(false), which does nothing #32486

josharian opened this issue Jun 7, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jun 7, 2019

extendslice contains: nifneg.SetLikely(false). But the Likely flag on Node is boolean; setting it to false has no effect at all. To make it do something, we'd need to invert the condition and set it to true. But given that the body contains a panic-style call, I suspect we already do the right thing for likeliness, and we should just delete the call to SetLikely.

This issue is a reminder to investigate and either delete or fix the SetLikely call.

cc @martisch

@josharian josharian added this to the Go1.14 milestone Jun 7, 2019


This comment has been minimized.

Copy link

commented Jun 7, 2019

Thanks for filling the reminder. Makes sense to remove for Go1.14 after confirming the branch layout is correct without it. I wonder if we have any way (or should have) to explicit communicate from front to backbend that an if is not taken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.