From a68b1da3cc7b454f110253534624c5ac4e065e72 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 8 Jul 2009 17:58:15 -0700 Subject: [PATCH] another nil reference R=rsc OCL=31373 CL=31373 --- src/cmd/gc/dcl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 4a1dfa1c1b3..4c085c82f9b 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -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);