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: b35ca85e57
GitHub-Pull-Request: golang/go#64955
Reviewed-on: https://go-review.googlesource.com/c/go/+/553895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
Ezzno J 2024-01-04 09:49:56 +00:00 committed by Gopher Robot
parent e41fabd688
commit 86a32d6d9c
1 changed files with 0 additions and 6 deletions

View File

@ -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())