compiler: make non-escaping Bound_method_expression not heap allocate
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:33:49 +0000 (23:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:33:49 +0000 (23:33 +0000)
commit92bb02927b92c5d0123431b6b486d2a398770fce
treeb2e86086338f45336e6aa538099f55d6618323f4
parenteb80a362bc7b382baf8541e84ccab33a887dd58a
compiler: make non-escaping Bound_method_expression not heap allocate

    Bound_method_expression needs a closure. Stack allocate the
    closure when it does not escape.

    Reviewed-on: https://go-review.googlesource.com/85638

From-SVN: r256407
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc