From: Josh Bleecher Snyder Date: Mon, 3 Apr 2017 02:12:19 +0000 (-0700) Subject: cmd/compile: len(n.List.Slice()) -> n.List.Len() X-Git-Tag: go1.9beta1~852 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=64f00fb150fff62a144e188e00f59f044ffb7d23;p=gostls13.git cmd/compile: len(n.List.Slice()) -> n.List.Len() Minor cleanup. This is the only such instance in the compiler. Change-Id: I4e8ecde57d71867c7e1ac4d17e2154a91dd262b0 Reviewed-on: https://go-review.googlesource.com/39209 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Dave Cheney TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/sinit.go b/src/cmd/compile/internal/gc/sinit.go index 365cd69d44..6011f0c0c4 100644 --- a/src/cmd/compile/internal/gc/sinit.go +++ b/src/cmd/compile/internal/gc/sinit.go @@ -927,7 +927,7 @@ func maplit(n *Node, m *Node, init *Nodes) { nerr := nerrors a := nod(OMAKE, nil, nil) - a.List.Set2(typenod(n.Type), nodintconst(int64(len(n.List.Slice())))) + a.List.Set2(typenod(n.Type), nodintconst(int64(n.List.Len()))) litas(m, a, init) // count the initializers