1
0
mirror of https://github.com/golang/go synced 2024-09-30 00:34:31 -06:00

cmd/compile: remove useless fcount

Change-Id: Ibc23b43dc9a7fabb27d7991977b283459f3deae3
Reviewed-on: https://go-review.googlesource.com/c/go/+/333009
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Leonard Wang 2021-07-06 23:39:29 +08:00 committed by Tobias Klauser
parent ea51e223c2
commit 5e0f8edbdc

View File

@ -154,7 +154,6 @@ func LoadPackage(filenames []string) {
// Phase 3: Type check function bodies.
// Don't use range--typecheck can add closures to Target.Decls.
base.Timer.Start("fe", "typecheck", "func")
var fcount int64
for i := 0; i < len(typecheck.Target.Decls); i++ {
if fn, ok := typecheck.Target.Decls[i].(*ir.Func); ok {
if base.Flag.W > 1 {
@ -166,7 +165,6 @@ func LoadPackage(filenames []string) {
s := fmt.Sprintf("\nafter typecheck %v", fn)
ir.Dump(s, fn)
}
fcount++
}
}