]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add CONVIFACE nodes needed in generic code due to assignments
authorDan Scales <danscales@google.com>
Tue, 31 Aug 2021 15:01:44 +0000 (08:01 -0700)
committerDan Scales <danscales@google.com>
Tue, 7 Sep 2021 23:27:08 +0000 (23:27 +0000)
commit3fff213ac24dc3b9b92c8a1f5f18ec0c97bac4c0
treeb0ce065aa21e6ae2ba79a747067ddcc549c1922a
parentb606739be6758615658188c8a6453256eaeccf35
cmd/compile: add CONVIFACE nodes needed in generic code due to assignments

Added new function earlyTransformAssign() to add needed CONVIFACE nodes
due to assignments in generic functions.

Fixes #48049

Change-Id: I7cd9cee6ecf34ed2ef0743d1b17645b9f520fa00
Reviewed-on: https://go-review.googlesource.com/c/go/+/347914
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stmt.go
src/cmd/compile/internal/noder/transform.go
test/typeparam/issue48049.go [new file with mode: 0644]