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) ...@@ -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(nl->class == PEXTERN) if(nr == N) {
return; if(nl->class == PEXTERN)
if(nl->class & PHEAP) return;
return; if(nl->class & PHEAP)
return;
}
tl = nl->type; tl = nl->type;
if(tl == T) if(tl == T)
return; 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