]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: mark output of typename as type-checked
authorRuss Cox <rsc@golang.org>
Thu, 7 Jun 2012 04:51:11 +0000 (00:51 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 7 Jun 2012 04:51:11 +0000 (00:51 -0400)
R=ken2
CC=golang-dev
https://golang.org/cl/6302051

src/cmd/gc/reflect.c

index 041c92c65c46e3d2c4adf81137583785953638f4..bab17d89ee82642a25def6d9ca153fd70b79b508 100644 (file)
@@ -640,6 +640,7 @@ typename(Type *t)
                n->ullman = 1;
                n->class = PEXTERN;
                n->xoffset = 0;
+               n->typecheck = 1;
                s->def = n;
 
                signatlist = list(signatlist, typenod(t));
@@ -649,6 +650,7 @@ typename(Type *t)
        n->type = ptrto(s->def->type);
        n->addable = 1;
        n->ullman = 2;
+       n->typecheck = 1;
        return n;
 }