]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: early return/continue to unindent some code
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 3 Apr 2018 12:17:28 +0000 (13:17 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 5 Apr 2018 11:12:39 +0000 (11:12 +0000)
commitfcfea247426703e6daaa0fa3383e762bf7ec081f
tree62d24a7005c78dc6ad96040f5f90eb701db2d45a
parent97677273532cf1a4e8b181c242d89c0be8c92bb6
cmd/compile: early return/continue to unindent some code

While at it, also simplify a couple of switches.

Doesn't pass toolstash -cmp on std cmd, because orderBlock(&n2.Nbody) is
moved further down to the n3 loop.

Change-Id: I20a2a6c21eb9a183a59572e0fca401a5041fc40a
Reviewed-on: https://go-review.googlesource.com/104416
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/typecheck.go