mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove ir.Name.Ntype
No longer needed now that IR construction uses types2. Change-Id: If8b7aff80cd8472be7d87fd3a36da911a5df163c Reviewed-on: https://go-review.googlesource.com/c/go/+/403839 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
e94fe09c33
commit
a6a49d128b
8 changed files with 11 additions and 41 deletions
|
|
@ -153,10 +153,6 @@ type itabInfo2 struct {
|
|||
func setType(n ir.Node, typ *types.Type) {
|
||||
n.SetType(typ)
|
||||
n.SetTypecheck(1)
|
||||
|
||||
if name, ok := n.(*ir.Name); ok {
|
||||
name.Ntype = ir.TypeNode(name.Type())
|
||||
}
|
||||
}
|
||||
|
||||
func setValue(name *ir.Name, val constant.Value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue