compiler: add backend type conversion
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Jul 2017 19:58:01 +0000 (19:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 28 Jul 2017 19:58:01 +0000 (19:58 +0000)
commit02c7e7eb5ed750f8ecebc96a29802cdf54c7f01e
tree901d4bac7d7deb3b7966c02219fba9ddd73f17d2
parent5a427c633be38b90946935236f6f0a5f76fe4c8f
compiler: add backend type conversion

    Tweak Interface_field_reference_expression::do_get_backend to apply an
    additional backend type conversion to the returned result.  This is
    needed due to the fact that the top level type of the expression is a
    function descriptor, however the value being manufactured is a pointer
    to <thunk-descriptor, value> struct.

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

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