mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: replace nod(ONAME) with newname
Passes toolstash-check -all. Change-Id: Ib9f969e5ecc1537b7eab186dc4fd504a50f800f2 Reviewed-on: https://go-review.googlesource.com/38586 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
e67d881bc3
commit
3a89065c6c
7 changed files with 45 additions and 56 deletions
|
|
@ -623,13 +623,10 @@ func makepartialcall(fn *Node, t0 *Type, meth *Sym) *Node {
|
|||
if int(cv.Type.Align) > Widthptr {
|
||||
cv.Xoffset = int64(cv.Type.Align)
|
||||
}
|
||||
ptr := nod(ONAME, nil, nil)
|
||||
ptr.Sym = lookup("rcvr")
|
||||
ptr := newname(lookup("rcvr"))
|
||||
ptr.Class = PAUTO
|
||||
ptr.SetAddable(true)
|
||||
ptr.SetUsed(true)
|
||||
ptr.Name.Curfn = xfunc
|
||||
ptr.Xoffset = 0
|
||||
xfunc.Func.Dcl = append(xfunc.Func.Dcl, ptr)
|
||||
var body []*Node
|
||||
if rcvrtype.IsPtr() || rcvrtype.IsInterface() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue