1
0
mirror of https://github.com/golang/go synced 2024-10-04 21:11:22 -06:00

cmd/compile: remove redundant "// fallthrough" comments

Change-Id: Ia3f262f06592b66447c213e2350402cd5e6e2ccd
Reviewed-on: https://go-review.googlesource.com/22389
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Matthew Dempsky 2016-04-22 15:45:24 -07:00
parent 889c0a66fc
commit f058ab09fb
4 changed files with 2 additions and 18 deletions

View File

@ -226,16 +226,13 @@ func convlit1(n *Node, t *Type, explicit bool, reuse canReuseNode) *Node {
case OCOMPLEX: case OCOMPLEX:
if n.Type.Etype == TIDEAL { if n.Type.Etype == TIDEAL {
switch t.Etype { switch t.Etype {
// If trying to convert to non-complex type,
// leave as complex128 and let typechecker complain.
default: default:
// If trying to convert to non-complex type,
// leave as complex128 and let typechecker complain.
t = Types[TCOMPLEX128] t = Types[TCOMPLEX128]
fallthrough fallthrough
//fallthrough
case TCOMPLEX128: case TCOMPLEX128:
n.Type = t n.Type = t
n.Left = convlit(n.Left, Types[TFLOAT64]) n.Left = convlit(n.Left, Types[TFLOAT64])
n.Right = convlit(n.Right, Types[TFLOAT64]) n.Right = convlit(n.Right, Types[TFLOAT64])
@ -711,8 +708,6 @@ func evconst(n *Node) {
break break
} }
fallthrough fallthrough
// fall through
case OCONV_ | CTINT_, case OCONV_ | CTINT_,
OCONV_ | CTRUNE_, OCONV_ | CTRUNE_,
OCONV_ | CTFLT_, OCONV_ | CTFLT_,

View File

@ -58,8 +58,6 @@ func anyinit(n []*Node) bool {
break break
} }
fallthrough fallthrough
// fall through
default: default:
return true return true
} }

View File

@ -342,8 +342,6 @@ func staticcopy(l *Node, r *Node, out *[]*Node) bool {
return true return true
} }
fallthrough fallthrough
// fall through
case OSTRUCTLIT: case OSTRUCTLIT:
p := initplans[r] p := initplans[r]
@ -1332,8 +1330,6 @@ func iszero(n *Node) bool {
break break
} }
fallthrough fallthrough
// fall through
case OSTRUCTLIT: case OSTRUCTLIT:
for _, n1 := range n.List.Slice() { for _, n1 := range n.List.Slice() {
if !iszero(n1.Right) { if !iszero(n1.Right) {

View File

@ -3153,8 +3153,6 @@ func islvalue(n *Node) bool {
return false return false
} }
fallthrough fallthrough
// fall through
case OIND, ODOTPTR, OCLOSUREVAR, OPARAM: case OIND, ODOTPTR, OCLOSUREVAR, OPARAM:
return true return true
@ -3858,11 +3856,8 @@ func markbreak(n *Node, implicit *Node) {
ORANGE: ORANGE:
implicit = n implicit = n
fallthrough fallthrough
// fall through
default: default:
markbreak(n.Left, implicit) markbreak(n.Left, implicit)
markbreak(n.Right, implicit) markbreak(n.Right, implicit)
markbreaklist(n.Ninit, implicit) markbreaklist(n.Ninit, implicit)
markbreaklist(n.Nbody, implicit) markbreaklist(n.Nbody, implicit)