mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: change Func.{Enter,Exit} from NodeList to slice
Introduces a new types Nodes that can be used to replace NodeList. Update #14473. Change-Id: Id77c5dcae0cbeb898ba12dd46bd400aad408871c Reviewed-on: https://go-review.googlesource.com/19969 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
6520da6ed5
commit
188e3d2515
9 changed files with 157 additions and 44 deletions
|
|
@ -2621,7 +2621,7 @@ func cgen_ret(n *Node) {
|
|||
if hasdefer {
|
||||
Ginscall(Deferreturn, 0)
|
||||
}
|
||||
Genlist(Curfn.Func.Exit)
|
||||
Genslice(Curfn.Func.Exit.Slice())
|
||||
p := Thearch.Gins(obj.ARET, nil, nil)
|
||||
if n != nil && n.Op == ORETJMP {
|
||||
p.To.Type = obj.TYPE_MEM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue