]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add required CONVIFACE nodes when translating OFUNCINST node
authorkorzhao <korzhao95@gmail.com>
Fri, 24 Sep 2021 17:13:27 +0000 (01:13 +0800)
committerDan Scales <danscales@google.com>
Sat, 25 Sep 2021 17:06:17 +0000 (17:06 +0000)
commitba7673069d9be4972a864023d74e9e0dd6a77b80
treefb4ee910c0145e6d776350eb49e9a5af10885d6b
parent8854368cb076ea9a2b71c8b3c8f675a8e19b751c
cmd/compile: add required CONVIFACE nodes when translating OFUNCINST node

In CL 349614. we removed the early transformation code that
was needed to create the implicit CONVIFACE nodes.

Because the transformCall function is not called when translating OFUNCINST.
So we add in needed CONVIFACE nodes via typecheckaste().

Fixes #48598

Change-Id: If9dc7040cdc38ef2e52fdbb08c840095651426f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/351856
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dan Scales <danscales@google.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/noder/transform.go
test/typeparam/issue48598.go [new file with mode: 0644]