]> Cypherpunks repositories - gostls13.git/commitdiff
iscomposite test in OCONV is unnecessary
authorRuss Cox <rsc@golang.org>
Wed, 7 Jan 2009 20:39:48 +0000 (12:39 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 7 Jan 2009 20:39:48 +0000 (12:39 -0800)
now that OCOMP exists

R=ken
OCL=22216
CL=22216

src/cmd/gc/go.y

index ffaad5d89ba376d24fa1ca5a4e6bc21e6848d3b6..d3a88ea9b19cf54302814125e0dbf72c5771a09d 100644 (file)
@@ -878,8 +878,6 @@ pexpr:
        {
                $$ = nod(OCONV, $3, N);
                $$->type = oldtype($1);
-               if(iscomposite($$->type))
-                       yyerror("illegal conversion type %T", $$->type);
        }
 |      convtype '{' braced_keyexpr_list '}'
        {