Commit 7be2b9fd authored by Ken Thompson's avatar Ken Thompson

bug in argument passing

R=r
OCL=16044
CL=16044
parent 2fb4edd3
...@@ -806,6 +806,7 @@ addtyp(Type *n, Type *t, int ctxt) ...@@ -806,6 +806,7 @@ addtyp(Type *n, Type *t, int ctxt)
t->sym = s; t->sym = s;
t->vargen = vargen; t->vargen = vargen;
if(s->forwtype != T) {
dowidth(t); dowidth(t);
for(f=s->forwtype; f!=T; f=f->nforw) { for(f=s->forwtype; f!=T; f=f->nforw) {
if(!isptr[f->etype]) if(!isptr[f->etype])
...@@ -813,6 +814,7 @@ addtyp(Type *n, Type *t, int ctxt) ...@@ -813,6 +814,7 @@ addtyp(Type *n, Type *t, int ctxt)
f->type = t; f->type = t;
} }
s->forwtype = T; s->forwtype = T;
}
d = dcl(); d = dcl();
d->dsym = s; d->dsym = s;
......
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