Commit 3e9b171b authored by Russ Cox's avatar Russ Cox

6g bug: was dropping assignment of nil to globals

R=ken
OCL=28314
CL=28314
parent 86043a87
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment