mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: add Type.NumResults and friends
Passes toolstash-check. Change-Id: Id62bacff13fbd30de62b925d97a4e7bee1c66120 Reviewed-on: https://go-review.googlesource.com/59331 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
e3442b4ee8
commit
2dd1f87d38
11 changed files with 28 additions and 25 deletions
|
|
@ -848,7 +848,7 @@ func (e *EscState) esc(n *Node, parent *Node) {
|
|||
|
||||
case ORETURN:
|
||||
retList := n.List
|
||||
if retList.Len() == 1 && Curfn.Type.Results().NumFields() > 1 {
|
||||
if retList.Len() == 1 && Curfn.Type.NumResults() > 1 {
|
||||
// OAS2FUNC in disguise
|
||||
// esccall already done on n.List.First()
|
||||
// tie e.nodeEscState(n.List.First()).Retval to Curfn.Func.Dcl PPARAMOUT's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue