We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version
tip (0bae74e)
go env
AMD64
Compile this code:
type T struct { a, b, c, d, e, f, g, h int } func f(t *T) T { return *t }
The nil check in f is not removed:
f
v6 = Arg <*T> {t} v10 = LoweredNilCheck <void> v6 v9 v12 = VarDef <mem> {~r1} v9 v13 = DUFFCOPY <mem> [840] v7 v6 v12
It is because some Zero/Move ops are not marked as faultOnNilArg0 etc. Will send a fix.
faultOnNilArg0
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/33421 mentions this issue.
Sorry, something went wrong.
Unless this is a regression from Go 1.7, I'm targeting this as Go 1.9.
fddc004
No branches or pull requests
What version of Go are you using (
go version
)?tip (0bae74e)
What operating system and processor architecture are you using (
go env
)?AMD64
Compile this code:
The nil check in
f
is not removed:It is because some Zero/Move ops are not marked as
faultOnNilArg0
etc. Will send a fix.The text was updated successfully, but these errors were encountered: