mirror of
https://github.com/golang/go
synced 2024-11-25 23:07:58 -07:00
6g: update for spec change CL 30586
R=ken OCL=30593 CL=30756
This commit is contained in:
parent
4c5c0f437f
commit
111ae83bb7
@ -209,15 +209,8 @@ implicitstar(Node **nn)
|
||||
t = t->type;
|
||||
if(t == T)
|
||||
return;
|
||||
switch(t->etype) {
|
||||
case TMAP:
|
||||
case TSTRING:
|
||||
case TARRAY:
|
||||
case TINTER:
|
||||
break;
|
||||
default:
|
||||
if(!isfixedarray(t))
|
||||
return;
|
||||
}
|
||||
n = nod(OIND, n, N);
|
||||
walktype(n, Elv);
|
||||
*nn = n;
|
||||
@ -1736,7 +1729,10 @@ lookdot(Node *n, Type *t)
|
||||
n->xoffset = f1->width;
|
||||
n->type = f1->type;
|
||||
if(t->etype == TINTER) {
|
||||
implicitstar(&n->left);
|
||||
if(isptr[n->left->type->etype]) {
|
||||
n->left = nod(OIND, n->left, N); // implicitstar
|
||||
walktype(n->left, Elv);
|
||||
}
|
||||
n->op = ODOTINTER;
|
||||
}
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user