Commit b4df33a6 authored by Russ Cox's avatar Russ Cox

gc: test + fix escape analysis bug

R=lvd
CC=golang-dev
https://golang.org/cl/5333049
parent 1fe22d2d
...@@ -239,6 +239,7 @@ esc(Node *n) ...@@ -239,6 +239,7 @@ esc(Node *n)
case OPROC: case OPROC:
// go f(x) - f and x escape // go f(x) - f and x escape
escassign(&theSink, n->left->left); escassign(&theSink, n->left->left);
escassign(&theSink, n->left->right); // ODDDARG for call
for(ll=n->left->list; ll; ll=ll->next) for(ll=n->left->list; ll; ll=ll->next)
escassign(&theSink, ll->n); escassign(&theSink, ll->n);
break; break;
......
This diff is collapsed.
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