1
0
mirror of https://github.com/golang/go synced 2024-11-22 12:14:42 -07:00

gc funarg return fix.

change type (to satisfy OAS) after nodarg:
nodarg uses offset from type too,
and must use correct offset.

R=ken
OCL=24656
CL=24656
This commit is contained in:
Russ Cox 2009-02-08 11:01:52 -08:00
parent b5aba026f8
commit a6c59ce274

View File

@ -1905,8 +1905,11 @@ ascompatte(int op, Type **nl, Node **nr, int fp)
if(l != T && r != N
&& structnext(&peekl) != T
&& listnext(&peekr) == N
&& eqtypenoname(r->type, *nl))
return convas(nod(OAS, nodarg(r->type, fp), r));
&& eqtypenoname(r->type, *nl)) {
a = nodarg(*nl, fp);
a->type = r->type;
return convas(nod(OAS, a, r));
}
loop:
if(l != T && isddd(l->type)) {