From c4c68fb57f1b081557a837e8809094b42cfdc5e3 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Wed, 28 Apr 2021 05:21:33 +0000 Subject: [PATCH] cmd/compile/internal/walk: delete unused statement Change-Id: I3f118c868b13ec51b2e501424b35564929eed56d GitHub-Last-Rev: d15ae124c582417cd10bceaef0b5c0ebbf100f7e GitHub-Pull-Request: golang/go#45816 Reviewed-on: https://go-review.googlesource.com/c/go/+/314570 Reviewed-by: Cuong Manh Le Trust: Cuong Manh Le Trust: Cherry Zhang Run-TryBot: Cuong Manh Le TryBot-Result: Go Bot --- src/cmd/compile/internal/walk/range.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cmd/compile/internal/walk/range.go b/src/cmd/compile/internal/walk/range.go index 0c651c6289e..b1169fdae8a 100644 --- a/src/cmd/compile/internal/walk/range.go +++ b/src/cmd/compile/internal/walk/range.go @@ -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]