compiler: lvalue context fixes in Unary_expression::do_get_backend
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Jun 2017 18:42:04 +0000 (18:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Jun 2017 18:42:04 +0000 (18:42 +0000)
commit3159d897bda6798885f34eaaba916b46ebe2382f
treef0433f7cef25f6f9b623e28860e74400426dd0e0
parent2163b9bcc627eb42ba5e629e54567b9f106e2f32
compiler: lvalue context fixes in Unary_expression::do_get_backend

    A couple of the Backend::var_expression invocations in
    Unary_expression::do_get_backend were selecting "lvalue" context
    incorrectly (these var exprs were not in an assignment or LHS
    position); fix is to change back to "rvalue" context.

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

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