]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: revert CL 60740044
authorDavid du Colombier <0intro@gmail.com>
Fri, 7 Feb 2014 16:05:16 +0000 (17:05 +0100)
committerDavid du Colombier <0intro@gmail.com>
Fri, 7 Feb 2014 16:05:16 +0000 (17:05 +0100)
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/60590047

src/cmd/gc/typecheck.c

index 7de01e3cf8d459a9740838293377a15318fcd420..3c27d991543d4e1865c6eacdc225fd6807a283ae 100644 (file)
@@ -3199,7 +3199,7 @@ typecheckdef(Node *n)
                n->type->sym = n->sym;
                nerrors0 = nerrors;
                typecheckdeftype(n);
-               if(n->type != T && n->type->etype == TFORW && nerrors > nerrors0) {
+               if(n->type->etype == TFORW && nerrors > nerrors0) {
                        // Something went wrong during type-checking,
                        // but it was reported. Silence future errors.
                        n->type->broke = 1;