]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: desugar OCALLMETH->OCALLFUNC within devirtualization
authorMatthew Dempsky <mdempsky@google.com>
Wed, 14 Dec 2022 19:48:02 +0000 (11:48 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 14 Dec 2022 20:37:17 +0000 (20:37 +0000)
commit4f8bc6224b64bf7149a03678ab5448830e7df80d
treec4e2e04196d100b5bdd7915094eba261088a100f
parent5c682f94c6b465f75b3e638ecff77adaf87aabb2
cmd/compile: desugar OCALLMETH->OCALLFUNC within devirtualization

Devirtualization can turn OCALLINTER into OCALLMETH, but then we want
to actually desugar into OCALLFUNC instead for later phases. Just
needs a missing call to typecheck.FixMethodCall.

Fixes #57309.

Change-Id: I331fbd40804e1a370134ef17fa6dd501c0920ed3
Reviewed-on: https://go-review.googlesource.com/c/go/+/457715
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/devirtualize/devirtualize.go
test/fixedbugs/issue57309.go [new file with mode: 0644]