]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: refactor some more gotos away
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 23 Sep 2017 18:39:08 +0000 (19:39 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 25 Sep 2017 06:51:53 +0000 (06:51 +0000)
commit0168fdb5520c0a77e9a27822caf307e739d4142a
tree12cb9bd05e6a9b3a161912f0e45c91144da4f1db
parent8598396d81035ed170581bfec894f6827b5db506
cmd/compile: refactor some more gotos away

The ones in racewalk.go are almost all useless, since they were just
breaks.

typecheck.go wasn't trivial, but still doable with an if/else chain.

Also remove a single silly goto in const.go, while at it.

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