]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: remove PkgFuncName assumption that LocalPkg.Path == ""
authorMatthew Dempsky <mdempsky@google.com>
Thu, 12 May 2022 22:47:21 +0000 (15:47 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 13 May 2022 21:33:25 +0000 (21:33 +0000)
commit4170084ad12c2e14dc0485d2a17a838e97fee8c7
treee75fdbbf3f2262d0808e6a375c250a123d95973a
parentaa6b75dd7d15c99368e7f51f3da2fb4b212ce33a
cmd/compile/internal/ir: remove PkgFuncName assumption that LocalPkg.Path == ""

Prep refactoring for CL 393715, after which LocalPkg.Path will no
longer be the empty string. Instead of testing `pkg.Path == ""`, we
can just test `pkg == LocalPkg`.

Updates #51734.

Change-Id: I74fff7fb383e275c9f294389d30b2220aced19e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/406059
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ir/func.go