compiler: make non-escaping Bound_method_expression not heap allocate

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 January 2018 23:33 EST

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

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

9aab3675421 compiler: make non-escaping Bound_method_expression not heap allocate
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/expressions.cc | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share