]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use IsSlice and IsArray instead of checking Bound
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 29 Mar 2016 16:14:19 +0000 (09:14 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 30 Mar 2016 17:18:29 +0000 (17:18 +0000)
commit331f9625087ab0169909012ac9a45b7321b81a37
treec550e18706de10f6e606e4e0356f6ae0ebb3ec8f
parentd7f7ea6ea894f197928cc728aef257c045e4e916
cmd/compile: use IsSlice and IsArray instead of checking Bound

Changes generated by eg and manually checked.

Isfixedarray, Isslice, and many other
Type-related functions in subr.go should
either be deleted or moved to type.go.
Later, though; the game now is cleanup via encapsulation.

Passes toolstash -cmp.

Change-Id: I83dd8816f6263b74367d23c2719a08c362e330f9
Reviewed-on: https://go-review.googlesource.com/21303
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/align.go
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/type.go
src/cmd/compile/internal/gc/typecheck.go