1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:14:41 -07:00

another nil reference

R=rsc
OCL=31373
CL=31373
This commit is contained in:
Ken Thompson 2009-07-08 17:58:15 -07:00
parent d6d0a39050
commit a68b1da3cc

View File

@ -107,6 +107,8 @@ updatetype(Type *n, Type *t)
int local, vargen;
int maplineno, lno, etype;
if(t == T)
return;
s = n->sym;
if(s == S || s->def == N || s->def->op != OTYPE || s->def->type != n)
fatal("updatetype %T = %T", n, t);