]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: turn some pointer params into results
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 24 Oct 2017 16:15:30 +0000 (17:15 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 2 Nov 2017 20:46:12 +0000 (20:46 +0000)
commitd5960e3043768d13a0593a750cbe9dfad6138c97
tree5a7c54d497785583407e3039f71e73eae5fa7741
parentf3884680fcbda5640e14a01d17aa38d06c70891f
cmd/compile: turn some pointer params into results

These are likely from the time when gc was written in C. There is no
need for any of these to be passed pointers, as the previous values are
not kept in any way, and the pointers are never nil. Others were left
untouched as they fell into one of these useful cases.

While at it, also turn some 0/1 integers into booleans.

Passes toolstash -cmp on std cmd.

Change-Id: Id3a9c9e84ef89536c4dc69a7fdbacd0fd7a76a9b
Reviewed-on: https://go-review.googlesource.com/72990
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/range.go
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/walk.go