1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:50:05 -07:00

bug in argument passing

R=r
OCL=16044
CL=16044
This commit is contained in:
Ken Thompson 2008-09-27 13:32:38 -07:00
parent 2fb4edd3e1
commit 7be2b9fdf6

View File

@ -806,6 +806,7 @@ addtyp(Type *n, Type *t, int ctxt)
t->sym = s;
t->vargen = vargen;
if(s->forwtype != T) {
dowidth(t);
for(f=s->forwtype; f!=T; f=f->nforw) {
if(!isptr[f->etype])
@ -813,6 +814,7 @@ addtyp(Type *n, Type *t, int ctxt)
f->type = t;
}
s->forwtype = T;
}
d = dcl();
d->dsym = s;