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

bug in argument passing

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