Commit ddf83eeb authored by Robert Griesemer's avatar Robert Griesemer

cmd/compile: s/eqtype/types.Identical/ (fix build)

TBR=khr

Change-Id: Ia5a08f1acd9f37c466829754990733330264f546
Reviewed-on: https://go-review.googlesource.com/c/143758Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
parent e9b39417
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment