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
|
|
@ -1440,9 +1440,9 @@ func (e *EscState) initEscRetval(call *Node, fntype *Type) {
|
|||
cE := e.nodeEscState(call)
|
||||
cE.Retval.Set(nil) // Suspect this is not nil for indirect calls.
|
||||
for i, f := range fntype.Results().Fields().Slice() {
|
||||
ret := nod(ONAME, nil, nil)
|
||||
buf := fmt.Sprintf(".out%d", i)
|
||||
ret.Sym = lookup(buf)
|
||||
ret := newname(lookup(buf))
|
||||
ret.SetAddable(false) // TODO(mdempsky): Seems suspicious.
|
||||
ret.Type = f.Type
|
||||
ret.Class = PAUTO
|
||||
ret.Name.Curfn = Curfn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue