mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
889c0a66fc
commit
f058ab09fb
4 changed files with 2 additions and 18 deletions
|
|
@ -226,16 +226,13 @@ func convlit1(n *Node, t *Type, explicit bool, reuse canReuseNode) *Node {
|
|||
case OCOMPLEX:
|
||||
if n.Type.Etype == TIDEAL {
|
||||
switch t.Etype {
|
||||
// If trying to convert to non-complex type,
|
||||
// leave as complex128 and let typechecker complain.
|
||||
default:
|
||||
// If trying to convert to non-complex type,
|
||||
// leave as complex128 and let typechecker complain.
|
||||
t = Types[TCOMPLEX128]
|
||||
fallthrough
|
||||
|
||||
//fallthrough
|
||||
case TCOMPLEX128:
|
||||
n.Type = t
|
||||
|
||||
n.Left = convlit(n.Left, Types[TFLOAT64])
|
||||
n.Right = convlit(n.Right, Types[TFLOAT64])
|
||||
|
||||
|
|
@ -711,8 +708,6 @@ func evconst(n *Node) {
|
|||
break
|
||||
}
|
||||
fallthrough
|
||||
|
||||
// fall through
|
||||
case OCONV_ | CTINT_,
|
||||
OCONV_ | CTRUNE_,
|
||||
OCONV_ | CTFLT_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue