mirror of
https://github.com/golang/go
synced 2024-11-20 02:34:42 -07:00
segfault
R=rsc OCL=31467 CL=31467
This commit is contained in:
parent
f7ac313629
commit
ed124a971e
@ -1204,7 +1204,8 @@ oldname(Sym *s)
|
||||
c->outer = n->closure;
|
||||
n->closure = c;
|
||||
c->closure = n;
|
||||
funclit->cvars = list(c, funclit->cvars);
|
||||
if(funclit != N)
|
||||
funclit->cvars = list(c, funclit->cvars);
|
||||
}
|
||||
// return ref to closure var, not original
|
||||
return n->closure;
|
||||
|
Loading…
Reference in New Issue
Block a user