cmd/compile: reorder BlankNode assignment to make SetType more clear

This commit is contained in:
ezzno 2023-03-16 17:55:55 +08:00
parent c69ff3a7d0
commit 594331fa10
1 changed files with 1 additions and 1 deletions

View File

@ -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("_")