1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:20:22 -07:00

iscomposite test in OCONV is unnecessary

now that OCOMP exists

R=ken
OCL=22216
CL=22216
This commit is contained in:
Russ Cox 2009-01-07 12:39:48 -08:00
parent 179af0bb19
commit 855495eab6

View 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 '}'
{