Skip to content

Commit

Permalink
cmd/compile: remove unused code in walk.Walk
Browse files Browse the repository at this point in the history
no errors'll be added during ir.DumpList, no need to be check again

Change-Id: I85ae2edd4377851277e9bb2a8baa28825ac3fd90
GitHub-Last-Rev: b35ca85
GitHub-Pull-Request: golang#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]>
  • Loading branch information
ezz-no authored and gopherbot committed Feb 17, 2024
1 parent e41fabd commit 86a32d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cmd/compile/internal/walk/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ func Walk(fn *ir.Func) {
ir.DumpList(s, ir.CurFunc.Body)
}

lno := base.Pos

base.Pos = lno
if base.Errors() > errorsBefore {
return
}
walkStmtList(ir.CurFunc.Body)
if base.Flag.W != 0 {
s := fmt.Sprintf("after walk %v", ir.CurFunc.Sym())
Expand Down

0 comments on commit 86a32d6

Please sign in to comment.