From: Ken Thompson Date: Fri, 4 Jul 2008 00:41:05 +0000 (-0700) Subject: a,b := fun() X-Git-Tag: weekly.2009-11-06~3565 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=81b325db1b0577a46e00316de30531a62424b844;p=gostls13.git a,b := fun() SVN=125998 --- diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 6bf97911e4..72ff4b8f1e 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -1231,10 +1231,8 @@ eqtype(Type *t1, Type *t2, int d) return 1; if(t1 == T || t2 == T) return 0; - if(t1->etype != t2->etype) return 0; - switch(t1->etype) { case TINTER: case TSTRUCT: diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 258a087f73..0110fe4073 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -224,7 +224,6 @@ loop: l = n->left; r = n->right; - walktype(l, Elv); if(l == N || r == N) goto ret; @@ -1749,7 +1748,7 @@ multi: l = listfirst(&savel, &nl); t = structfirst(&saver, getoutarg(t)); while(l != N) { - a = old2new(l, t); + a = old2new(l, t->type); if(n == N) n = a; else