mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: tighten exportWriter.qualifiedIdent signature
It always takes an *ir.Name and would panic given anything else anyway, so tighten the signature to match. Change-Id: I44fec5c5cc6d7f0b9c59eb91c9f9633137485360 Reviewed-on: https://go-review.googlesource.com/c/go/+/314009 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
c249491572
commit
cb34026a95
1 changed files with 2 additions and 2 deletions
|
|
@ -603,9 +603,9 @@ func (w *exportWriter) pkg(pkg *types.Pkg) {
|
||||||
w.string(pkg.Path)
|
w.string(pkg.Path)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *exportWriter) qualifiedIdent(n ir.Node) {
|
func (w *exportWriter) qualifiedIdent(n *ir.Name) {
|
||||||
// Ensure any referenced declarations are written out too.
|
// Ensure any referenced declarations are written out too.
|
||||||
w.p.pushDecl(n.Name())
|
w.p.pushDecl(n)
|
||||||
|
|
||||||
s := n.Sym()
|
s := n.Sym()
|
||||||
w.string(s.Name)
|
w.string(s.Name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue