Commit a68b1da3 authored by Ken Thompson's avatar Ken Thompson

another nil reference

R=rsc
OCL=31373
CL=31373
parent d6d0a390
...@@ -107,6 +107,8 @@ updatetype(Type *n, Type *t) ...@@ -107,6 +107,8 @@ updatetype(Type *n, Type *t)
int local, vargen; int local, vargen;
int maplineno, lno, etype; int maplineno, lno, etype;
if(t == T)
return;
s = n->sym; s = n->sym;
if(s == S || s->def == N || s->def->op != OTYPE || s->def->type != n) if(s == S || s->def == N || s->def->op != OTYPE || s->def->type != n)
fatal("updatetype %T = %T", n, t); fatal("updatetype %T = %T", n, t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment