mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: fix stencil call expression.
Fixes: #47878 Change-Id: I369350813726fd518b4eab2b98f43bf031a6dee6 Reviewed-on: https://go-review.googlesource.com/c/go/+/344210 Reviewed-by: Dan Scales <danscales@google.com> Trust: Dan Scales <danscales@google.com> Trust: Keith Randall <khr@golang.org> Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
099b819085
commit
08d4cc20ca
2 changed files with 53 additions and 0 deletions
|
|
@ -1048,6 +1048,13 @@ func (subst *subster) node(n ir.Node) ir.Node {
|
|||
case ir.OCLOSURE:
|
||||
transformCall(call)
|
||||
|
||||
case ir.ODEREF, ir.OINDEX, ir.OINDEXMAP, ir.ORECV:
|
||||
// Transform a call that was delayed because of the
|
||||
// use of typeparam inside an expression that required
|
||||
// a pointer dereference, array indexing, map indexing,
|
||||
// or channel receive to compute function value.
|
||||
transformCall(call)
|
||||
|
||||
case ir.OFUNCINST:
|
||||
// A call with an OFUNCINST will get transformed
|
||||
// in stencil() once we have created & attached the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue