mirror of
https://github.com/golang/go
synced 2024-11-26 05:57:58 -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:
parent
b5aba026f8
commit
a6c59ce274
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user