1
0
mirror of https://github.com/golang/go synced 2024-11-22 17: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 // externals and heaps should already be clear
if(nr == N) {
if(nl->class == PEXTERN) if(nl->class == PEXTERN)
return; return;
if(nl->class & PHEAP) if(nl->class & PHEAP)
return; return;
}
tl = nl->type; tl = nl->type;
if(tl == T) if(tl == T)
return; return;