mirror of https://github.com/golang/go.git
cmd/compile: reorder BlankNode assignment to make SetType more clear
This commit is contained in:
parent
c69ff3a7d0
commit
594331fa10
|
|
@ -96,8 +96,8 @@ func InitUniverse() {
|
|||
s = Lookup("_")
|
||||
types.BlankSym = s
|
||||
s.Def = NewName(s)
|
||||
ir.AsNode(s.Def).SetType(types.Types[types.TBLANK])
|
||||
ir.BlankNode = ir.AsNode(s.Def)
|
||||
ir.BlankNode.SetType(types.Types[types.TBLANK])
|
||||
ir.BlankNode.SetTypecheck(1)
|
||||
|
||||
s = types.BuiltinPkg.Lookup("_")
|
||||
|
|
|
|||
Loading…
Reference in New Issue