mirror of
https://github.com/golang/go
synced 2024-11-26 09:38:10 -07: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:
parent
ea51e223c2
commit
5e0f8edbdc
@ -154,7 +154,6 @@ func LoadPackage(filenames []string) {
|
|||||||
// Phase 3: Type check function bodies.
|
// Phase 3: Type check function bodies.
|
||||||
// Don't use range--typecheck can add closures to Target.Decls.
|
// Don't use range--typecheck can add closures to Target.Decls.
|
||||||
base.Timer.Start("fe", "typecheck", "func")
|
base.Timer.Start("fe", "typecheck", "func")
|
||||||
var fcount int64
|
|
||||||
for i := 0; i < len(typecheck.Target.Decls); i++ {
|
for i := 0; i < len(typecheck.Target.Decls); i++ {
|
||||||
if fn, ok := typecheck.Target.Decls[i].(*ir.Func); ok {
|
if fn, ok := typecheck.Target.Decls[i].(*ir.Func); ok {
|
||||||
if base.Flag.W > 1 {
|
if base.Flag.W > 1 {
|
||||||
@ -166,7 +165,6 @@ func LoadPackage(filenames []string) {
|
|||||||
s := fmt.Sprintf("\nafter typecheck %v", fn)
|
s := fmt.Sprintf("\nafter typecheck %v", fn)
|
||||||
ir.Dump(s, fn)
|
ir.Dump(s, fn)
|
||||||
}
|
}
|
||||||
fcount++
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user