compiler: Propagate escape info from closures to enclosed variables.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Apr 2015 22:14:34 +0000 (22:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 29 Apr 2015 22:14:34 +0000 (22:14 +0000)
commit67b68b8139ca4e45c8948642cd6678159ae51311
treee036dccc29cdf8c02ddd02633a88a8f847c150d4
parentb693b8792e23b2d9839db05cbd725fbb92789df6
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.

From-SVN: r222597
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/gogo.h