mirror of
https://github.com/golang/go
synced 2024-09-04 15:34:21 +00:00
[dev.typeparams] cmd/compile: restore check for OCALLMETH in walkCall
Since when walkCall1 still need to handle OCALLMETH. Change-Id: Iadb12a0965169c63f97978c96412012ef4fa02df Reviewed-on: https://go-review.googlesource.com/c/go/+/330833 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
942bcc2d4f
commit
180c338c68
|
@ -489,7 +489,7 @@ func walkAddString(n *ir.AddStringExpr, init *ir.Nodes) ir.Node {
|
||||||
|
|
||||||
// walkCall walks an OCALLFUNC, OCALLINTER, or OCALLMETH node.
|
// walkCall walks an OCALLFUNC, OCALLINTER, or OCALLMETH node.
|
||||||
func walkCall(n *ir.CallExpr, init *ir.Nodes) ir.Node {
|
func walkCall(n *ir.CallExpr, init *ir.Nodes) ir.Node {
|
||||||
if n.Op() == ir.OCALLINTER || n.X.Op() == ir.OMETHEXPR {
|
if n.Op() == ir.OCALLINTER || n.Op() == ir.OCALLMETH || n.X.Op() == ir.OMETHEXPR {
|
||||||
// We expect both interface call reflect.Type.Method and concrete
|
// We expect both interface call reflect.Type.Method and concrete
|
||||||
// call reflect.(*rtype).Method.
|
// call reflect.(*rtype).Method.
|
||||||
usemethod(n)
|
usemethod(n)
|
||||||
|
|
Loading…
Reference in a new issue