]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] cmd/gc: mark output of typename as type-checked
authorRuss Cox <rsc@golang.org>
Wed, 13 Jun 2012 20:24:47 +0000 (16:24 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jun 2012 20:24:47 +0000 (16:24 -0400)
««« backport d39a44280dd3
cmd/gc: mark output of typename as type-checked

R=ken2
CC=golang-dev
https://golang.org/cl/6302051

»»»

src/cmd/gc/reflect.c

index 07b426508172cb2635f636711e6476ba02fbee8a..62759bcbae23d83d5c00058cc2d0f6a781f04af2 100644 (file)
@@ -629,6 +629,7 @@ typename(Type *t)
                n->ullman = 1;
                n->class = PEXTERN;
                n->xoffset = 0;
+               n->typecheck = 1;
                s->def = n;
 
                signatlist = list(signatlist, typenod(t));
@@ -638,6 +639,7 @@ typename(Type *t)
        n->type = ptrto(s->def->type);
        n->addable = 1;
        n->ullman = 2;
+       n->typecheck = 1;
        return n;
 }