compiler: add explicit convert in Type_guard_expression::do_get_backend
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 20 Jul 2017 19:53:54 +0000 (19:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 20 Jul 2017 19:53:54 +0000 (19:53 +0000)
commit033e96a263c4fb14e25b40141552a3602d89cace
treeb96e4ead16411d6708a4ae393a9fc31ab1c07e9b
parent2953b72fdd6c7d812028a636dfadf1c0e89ca314
compiler: add explicit convert in Type_guard_expression::do_get_backend

    The current recipe in Type_guard_expression for creating a Bexpression
    performs a type conversion at the Type level, but doesn't invoke
    Backend::convert_expression to capture the conversion for the back
    end. Add code to create a BE type conversion operation.

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

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