]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] cmd/compile: port CL 330838 for -G=3
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 27 Jun 2021 15:10:03 +0000 (22:10 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 28 Jun 2021 02:00:33 +0000 (02:00 +0000)
So next CL can move MethodValueWrapper to walk, since when walk is now
the only place which uses this function.

Change-Id: Id3be359bfc38efb022451cb7f9e53c2868fe7e12
Reviewed-on: https://go-review.googlesource.com/c/go/+/330840
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/transform.go

index 660c4a19e66bbd8ad666f524b3d59f9dce629a5f..c3fa8042f2c49e5263419c5e93828ebae1edff2e 100644 (file)
@@ -594,7 +594,7 @@ func transformDot(n *ir.SelectorExpr, isCall bool) ir.Node {
                        // Or did we successfully desugar all that at stencil time?
                        return n
                }
-               n.SetType(typecheck.MethodValueWrapper(n).Type())
+               n.SetType(typecheck.NewMethodType(n.Type(), nil))
        }
        return n
 }