1
0
mirror of https://github.com/golang/go synced 2024-11-26 16:26:49 -07:00

initialization of

var a,b int;

R=r
OCL=16318
CL=16318
This commit is contained in:
Ken Thompson 2008-10-01 14:16:57 -07:00
parent abb95518ab
commit 970d6a14c4

View File

@ -896,11 +896,15 @@ cgen_as(Node *nl, Node *nr, int op)
if(nl == N)
return;
tl = nl->type;
if(tl == T)
return;
if(nr == N || isnil(nr)) {
if(nl->op == OLIST) {
cgen_as(nl->left, nr, op);
cgen_as(nl->right, nr, op);
return;
}
tl = nl->type;
if(tl == T)
return;
if(isfat(tl)) {
/* clear a fat object */
if(debug['g'])
@ -978,6 +982,10 @@ cgen_as(Node *nl, Node *nr, int op)
ullmancalc(nr);
}
tl = nl->type;
if(tl == T)
return;
cgen(nr, nl);
ret: