]> Cypherpunks repositories - gostls13.git/commitdiff
another nil reference
authorKen Thompson <ken@golang.org>
Thu, 9 Jul 2009 00:58:15 +0000 (17:58 -0700)
committerKen Thompson <ken@golang.org>
Thu, 9 Jul 2009 00:58:15 +0000 (17:58 -0700)
R=rsc
OCL=31373
CL=31373

src/cmd/gc/dcl.c

index 4a1dfa1c1b36eb43d260c7be0eafc01d7fb64efa..4c085c82f9b9ac49ce38989c79cd7aed4ba6bc0f 100644 (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);