]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/typecheck/subr.go
cmd/compile/internal/reflectdata: share hmap and hiter types
[gostls13.git] / src / cmd / compile / internal / typecheck / subr.go
index 56ff7a73179051c86ef2ba7d8743769491a7e5db..0583635013b82dfd3deb1bde16100b2487cb7674 100644 (file)
@@ -537,15 +537,7 @@ func Convertop(srcConstant bool, src, dst *types.Type) (ir.Op, string) {
                return ir.OCONVNOP, ""
        }
 
-       // 10. src is map and dst is a pointer to corresponding hmap.
-       // This rule is needed for the implementation detail that
-       // go gc maps are implemented as a pointer to a hmap struct.
-       if src.Kind() == types.TMAP && dst.IsPtr() &&
-               src.MapType().Hmap == dst.Elem() {
-               return ir.OCONVNOP, ""
-       }
-
-       // 11. src is a slice and dst is an array or pointer-to-array.
+       // 10. src is a slice and dst is an array or pointer-to-array.
        // They must have same element type.
        if src.IsSlice() {
                if dst.IsArray() && types.Identical(src.Elem(), dst.Elem()) {