mirror of
https://github.com/golang/go
synced 2024-11-22 12:24:47 -07:00
6g bug: was dropping assignment of nil to globals
R=ken OCL=28314 CL=28314
This commit is contained in:
parent
86043a87c9
commit
3e9b171b79
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user