mirror of
https://github.com/golang/go
synced 2024-11-11 23:50:22 -07: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.
|
||||
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
|
||||
// call reflect.(*rtype).Method.
|
||||
usemethod(n)
|
||||
|
Loading…
Reference in New Issue
Block a user