]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: minor cleanup of slicing
authorMichael Munday <mike.munday@ibm.com>
Sat, 30 Mar 2019 14:11:05 +0000 (14:11 +0000)
committerMichael Munday <mike.munday@ibm.com>
Mon, 1 Apr 2019 21:16:31 +0000 (21:16 +0000)
commit726a9398f7dddfb681174a6bb71d1ad7c92142b6
treeb7256bcb74a4c859cdb381e0c7529a0b4344c956
parent5fc55b31803e9929d104ce58a4dcbef97a87a83e
cmd/compile/internal/gc: minor cleanup of slicing

Tidy the code up a little bit to move variable definitions closer
to uses, prefer early return to else branches and some other minor
tweaks.

I'd like to make some more changes to this code in the near future
and this CL should make those changes cleaner.

Change-Id: Ie7d7f2e4bb1e670347941e255c9cdc1703282db5
Reviewed-on: https://go-review.googlesource.com/c/go/+/170120
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go