Commit a6c59ce2 authored by Russ Cox's avatar Russ Cox

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
parent b5aba026
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment