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

pkg/compiler: fix excessive deref #56

Merged
merged 1 commit into from
Jan 22, 2019
Merged

pkg/compiler: fix excessive deref #56

merged 1 commit into from
Jan 22, 2019

Conversation

quasilyte
Copy link
Contributor

The (*x.(*T)).M() is identical to x.(*T).M(),
since Go does one level auto-deref automatically.

Note that *x in the code above does not perform
extra copying as the machine code generated for
both forms will be the same.

Signed-off-by: Iskander Sharipov quasilyte@gmail.com

The `(*x.(*T)).M()` is identical to `x.(*T).M()`,
since Go does one level auto-deref automatically.

Note that *x in the code above does not perform
extra copying as the machine code generated for
both forms will be the same.

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
@glycerine
Copy link
Contributor

Ok. Thanks @quasilyte.

@glycerine glycerine merged commit c9a70bc into gijit:master Jan 22, 2019
@quasilyte quasilyte deleted the quasilyte/fix_excessive_deref branch January 22, 2019 20:47
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.

2 participants