compiler: Propagate escape info from closures to enclosed variables.
commit1c9e2501dad960b4b049fde0979ae2d3b9bc542b
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Apr 2015 22:14:34 +0000 (29 22:14 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Apr 2015 22:14:34 +0000 (29 22:14 +0000)
treee036dccc29cdf8c02ddd02633a88a8f847c150d4
parentc8b1b26cb2501100b6e8b179a28a4e4b2ecdb502
compiler: Propagate escape info from closures to enclosed variables.

If a closure escapes, the enclosed variables must escape via the
closure.  Reachability analysis had a bug where the enclosed
variables were not considered as reachable from the closure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222597 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/gogo.h