mirror of
https://github.com/golang/go.git
synced 2025-11-01 01:00:56 +00:00
[dev.regabi] cmd/compile: split SliceHeaderExpr.LenCap into separate fields
Passes toolstash -cmp. Change-Id: Ifc98a408c154a05997963e2c731466842ebbf50e Reviewed-on: https://go-review.googlesource.com/c/go/+/279958 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
53f082b0ee
commit
d19018e8f1
7 changed files with 24 additions and 31 deletions
|
|
@ -817,8 +817,8 @@ func walkSlice(n *ir.SliceExpr, init *ir.Nodes) ir.Node {
|
|||
// walkSliceHeader walks an OSLICEHEADER node.
|
||||
func walkSliceHeader(n *ir.SliceHeaderExpr, init *ir.Nodes) ir.Node {
|
||||
n.Ptr = walkExpr(n.Ptr, init)
|
||||
n.LenCap[0] = walkExpr(n.LenCap[0], init)
|
||||
n.LenCap[1] = walkExpr(n.LenCap[1], init)
|
||||
n.Len = walkExpr(n.Len, init)
|
||||
n.Cap = walkExpr(n.Cap, init)
|
||||
return n
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue