]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/go/types/conversions.go
libgo: update to Go1.14beta1
[thirdparty/gcc.git] / libgo / go / go / types / conversions.go
index fecb7b617ffd7c1bba765a30e91dda15c9ca019f..7ea8fd70aabb2621336836ad2b755bce4cfcbd07 100644 (file)
@@ -89,7 +89,7 @@ func (x *operand) convertibleTo(check *Checker, T Type) bool {
        V := x.typ
        Vu := V.Underlying()
        Tu := T.Underlying()
-       if IdenticalIgnoreTags(Vu, Tu) {
+       if check.identicalIgnoreTags(Vu, Tu) {
                return true
        }
 
@@ -97,7 +97,7 @@ func (x *operand) convertibleTo(check *Checker, T Type) bool {
        // have identical underlying types if tags are ignored"
        if V, ok := V.(*Pointer); ok {
                if T, ok := T.(*Pointer); ok {
-                       if IdenticalIgnoreTags(V.base.Underlying(), T.base.Underlying()) {
+                       if check.identicalIgnoreTags(V.base.Underlying(), T.base.Underlying()) {
                                return true
                        }
                }