]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: clean up ctxt params in sinit
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 4 Sep 2016 16:34:03 +0000 (09:34 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 5 Sep 2016 01:58:47 +0000 (01:58 +0000)
commit460b76aef98490b3cf8d374c589db631eab85957
treebd9ea4129296e151c345f9f59d128c46457b78a9
parent199b17cca8daf5bac6210e5719b1e85a51bd311d
cmd/compile: clean up ctxt params in sinit

The ctxt parameter is always set to 0 on entry into anylit so make this
parameter a literal constant, and where possibly remove ctxt as a parameter
where it is known to be a constant zero.

Passes toolstash -cmp.

This is a re-creation of CL 28221 by Dave Cheney.
That CL was graciously reverted in CL 28480
to make merging other CLs easier.

Change-Id: If7a57bf0e27774d9890adbc30af9fabb4aff1058
Reviewed-on: https://go-review.googlesource.com/28483
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/walk.go