mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.typeparams] cmd/compile: handle ONONAME in subster.node
Fixes #46472 Change-Id: I27802978fa0c3bb32a29e452165a6fcac93473bb Reviewed-on: https://go-review.googlesource.com/c/go/+/323731 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: Dan Scales <danscales@google.com>
This commit is contained in:
parent
f32f4f58d9
commit
4b10e4c547
2 changed files with 23 additions and 0 deletions
|
|
@ -350,6 +350,9 @@ func (subst *subster) node(n ir.Node) ir.Node {
|
|||
return v
|
||||
}
|
||||
return x
|
||||
case ir.ONONAME:
|
||||
// This handles the identifier in a type switch guard
|
||||
fallthrough
|
||||
case ir.OLITERAL, ir.ONIL:
|
||||
if x.Sym() != nil {
|
||||
return x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue