gc: resolve built-ins to built-in symbol

R=lvd
CC=golang-dev
https://golang.org/cl/5480049
This commit is contained in:
Russ Cox 2011-12-09 08:28:17 -05:00
parent fc128403dc
commit e77f057bf3

View file

@ -1745,7 +1745,7 @@ lexinit(void)
s1 = pkglookup(syms[i].name, builtinpkg);
s1->lexical = LNAME;
s1->def = nod(ONAME, N, N);
s1->def->sym = s;
s1->def->sym = s1;
s1->def->etype = etype;
s1->def->builtin = 1;
}