]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove unused code in walk.Walk
authorEzzno J <ezzno@ezzno.com>
Thu, 4 Jan 2024 09:49:56 +0000 (09:49 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 17 Feb 2024 06:03:15 +0000 (06:03 +0000)
no errors'll be added during ir.DumpList, no need to be check again

Change-Id: I85ae2edd4377851277e9bb2a8baa28825ac3fd90
GitHub-Last-Rev: b35ca85e57d81002adad4b1ffc9506f359201b71
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>
src/cmd/compile/internal/walk/walk.go

index 6cb80270e5242061c629d329036f6c64c0a403ab..d2b0fb6830214a611a72bad39f3f7d0231f82b8f 100644 (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())