]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: catch another mis-used OCALLMETH in backend
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 24 Jun 2021 07:13:39 +0000 (14:13 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 25 Jun 2021 02:28:47 +0000 (02:28 +0000)
commitaee209c04426c50bb045e058b4f618ed306b7d62
tree6b0abe0684715f733308499e58765dba1957c9f2
parent75ad32377378b4d6fa831b67a7f6aaf68cbe07d4
[dev.typeparams] cmd/compile: catch another mis-used OCALLMETH in backend

OCALLMETH is rewritten by walkCall to OCALLFUNC, and other places in
backend have already caught it. So do the same thing in state.expr for
consistency and prevent mis-use in frontend side.

While at it, also remove un-used function getParam.

Change-Id: I03e1ea907e0bcb05fa35fa81804c33b5c9a4d77e
Reviewed-on: https://go-review.googlesource.com/c/go/+/330669
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/ssagen/ssa.go