mirror of https://github.com/golang/go.git
cmd/compile/internal/walk: delete unused statement
This commit is contained in:
parent
92d1afe989
commit
d15ae124c5
|
|
@ -421,7 +421,6 @@ func arrayClear(loop *ir.RangeStmt, v1, v2, a ir.Node) ir.Node {
|
|||
// i = len(a) - 1
|
||||
// }
|
||||
n := ir.NewIfStmt(base.Pos, nil, nil, nil)
|
||||
n.Body = nil
|
||||
n.Cond = ir.NewBinaryExpr(base.Pos, ir.ONE, ir.NewUnaryExpr(base.Pos, ir.OLEN, a), ir.NewInt(0))
|
||||
|
||||
// hp = &a[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue