From cb34026a95f0637a0f9eadb5e1d7aa301635f943 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 26 Apr 2021 22:08:06 -0700 Subject: 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 Run-TryBot: Matthew Dempsky Reviewed-by: Cuong Manh Le TryBot-Result: Go Bot --- src/cmd/compile/internal/typecheck/iexport.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/compile/internal/typecheck/iexport.go') diff --git a/src/cmd/compile/internal/typecheck/iexport.go b/src/cmd/compile/internal/typecheck/iexport.go index 5955b3d358..ad9eaab07a 100644 --- a/src/cmd/compile/internal/typecheck/iexport.go +++ b/src/cmd/compile/internal/typecheck/iexport.go @@ -603,9 +603,9 @@ func (w *exportWriter) pkg(pkg *types.Pkg) { 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. - w.p.pushDecl(n.Name()) + w.p.pushDecl(n) s := n.Sym() w.string(s.Name) -- cgit v1.2.3-54-g00ecf