mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: s/eqtype/types.Identical/ (fix build)
TBR=khr Change-Id: Ia5a08f1acd9f37c466829754990733330264f546 Reviewed-on: https://go-review.googlesource.com/c/143758 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
e9b39417e4
commit
ddf83eeb23
1 changed files with 1 additions and 1 deletions
|
|
@ -2895,7 +2895,7 @@ func walkappend(n *Node, init *Nodes, dst *Node) *Node {
|
|||
ls := n.List.Slice()[1:]
|
||||
for i, n := range ls {
|
||||
n = cheapexpr(n, init)
|
||||
if !eqtype(n.Type, nsrc.Type.Elem()) {
|
||||
if !types.Identical(n.Type, nsrc.Type.Elem()) {
|
||||
n = assignconv(n, nsrc.Type.Elem(), "append")
|
||||
n = walkexpr(n, init)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue