mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: use []*Node instead of NodeList in bottomUpVisitor
This one of a set of changes to make the transition away from NodeList easier by removing cases in which NodeList doesn't act semi-trivially like a []*Node. This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I582ff8b077eb384b84721a1edb0c1efbc0c40059 Reviewed-on: https://go-review.googlesource.com/14304 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
5a3ff6c895
commit
22452ac592
3 changed files with 31 additions and 30 deletions
|
|
@ -2499,7 +2499,7 @@ func genwrapper(rcvr *Type, method *Type, newnam *Sym, iface int) {
|
|||
typechecklist(fn.Nbody, Etop)
|
||||
|
||||
inlcalls(fn)
|
||||
escAnalyze(list1(fn), false)
|
||||
escAnalyze([]*Node{fn}, false)
|
||||
|
||||
Curfn = nil
|
||||
funccompile(fn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue