compiler: identify array index expressions in lvalue context
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 26 May 2017 21:48:49 +0000 (21:48 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 26 May 2017 21:48:49 +0000 (21:48 +0000)
commit56efdb4596f2dd9aa568c6a160e81222c1d2a23c
tree5dd97bb1dc4d0746fb05a9875ebb62a6b3e3df85
parent7d66e2655f500058cc7c82f855a23838af598ac5
compiler: identify array index expressions in lvalue context

    Update the Mark_lvalue_varexprs visitor class (used in
    Assignment_statement::do_get_backend) to identify
    Array_index_expression's that appear on the left hand side of
    assignments, then pass this context info on when invoking
    Array_type::get_value_pointer.

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

From-SVN: r248528
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h