]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: count init functions from 0, not 1
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 23 Apr 2017 23:34:35 +0000 (16:34 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 24 Apr 2017 00:58:49 +0000 (00:58 +0000)
commita73a330cdfba1d9960f4e8de3f238a00caba1a14
treec6feaa5055af7ccd1cf419816a71754af1469abf
parent79e5ef293545dd4f96b10e0bf82582e5dd57757a
cmd/compile: count init functions from 0, not 1

While we're here, do minor style cleanup.
Also, since we know exactly how many init
functions there are, use that knowledge.

This is cleanup prior to a more substantive CL.

Change-Id: I2bba60b3c051c852590f798f45e8268f8bc54ca8
Reviewed-on: https://go-review.googlesource.com/41499
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/init.go