Skip to content

Commit 86a32d6

Browse files
ezz-nogopherbot
authored andcommitted
cmd/compile: remove unused code in walk.Walk
no errors'll be added during ir.DumpList, no need to be check again Change-Id: I85ae2edd4377851277e9bb2a8baa28825ac3fd90 GitHub-Last-Rev: b35ca85 GitHub-Pull-Request: #64955 Reviewed-on: https://go-review.googlesource.com/c/go/+/553895 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent e41fabd commit 86a32d6

File tree

1 file changed

+0
-6
lines changed
  • src/cmd/compile/internal/walk

1 file changed

+0
-6
lines changed

src/cmd/compile/internal/walk/walk.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ func Walk(fn *ir.Func) {
3333
ir.DumpList(s, ir.CurFunc.Body)
3434
}
3535

36-
lno := base.Pos
37-
38-
base.Pos = lno
39-
if base.Errors() > errorsBefore {
40-
return
41-
}
4236
walkStmtList(ir.CurFunc.Body)
4337
if base.Flag.W != 0 {
4438
s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym())

0 commit comments

Comments
 (0)