mirror of
https://github.com/golang/go
synced 2024-11-22 21:00:04 -07:00
bug in argument passing
R=r OCL=16044 CL=16044
This commit is contained in:
parent
2fb4edd3e1
commit
7be2b9fdf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user