compiler: insert backend type conversion for closure func ptr
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Jul 2017 23:29:15 +0000 (23:29 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Jul 2017 23:29:15 +0000 (23:29 +0000)
commit6033b55bd90c3e0e857b4a1b54ab1d243377e56e
tree228b66f528ce1d6fcee3fca02761bac5620702fb
parent9e45ca5f83954a340cc78c2f86b7b3294188047f
compiler: insert backend type conversion for closure func ptr

    In Func_expression::do_get_backend when creating the backend
    representation for a closure, create a backend type conversion to
    account for potential differences between the closure struct type
    (where the number of fields is dependent on the number of values
    referenced in the closure) and the generic function descriptor type
    (struct with single function pointer field).

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

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