1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:04:40 -07:00

6g bug: was dropping assignment of nil to globals

R=ken
OCL=28314
CL=28314
This commit is contained in:
Russ Cox 2009-05-05 17:33:51 -07:00
parent 86043a87c9
commit 3e9b171b79

View File

@ -439,10 +439,13 @@ cgen_as(Node *nl, Node *nr)
}
// externals and heaps should already be clear
if(nl->class == PEXTERN)
return;
if(nl->class & PHEAP)
return;
if(nr == N) {
if(nl->class == PEXTERN)
return;
if(nl->class & PHEAP)
return;
}
tl = nl->type;
if(tl == T)
return;