]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove redundant switch label
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 11 Sep 2017 19:10:43 +0000 (21:10 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 12 Sep 2017 19:39:46 +0000 (19:39 +0000)
commit6d33df1d65c405a3624dbb792112b8ce399f470f
tree145c012e9dc395b4871cf773526037aa23b3e316
parentb86fae041baff7a7077c67060bc4282d78a2118b
cmd/compile: remove redundant switch label

This label was added automatically by grind to remove gotos. As of
today, it's completely useless, as none of its uses need a label to
begin with.

While at it, remove all the redundant breaks too. Leave those that are
the single statement in a case clause body, as that's the style used
throughout std and cmd to clarify when cases are empty.

Change-Id: I3e20068b66b759614e903beab1cc9b2709b31063
Reviewed-on: https://go-review.googlesource.com/62950
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/typecheck.go