compiler: fix missing case in Array_type::get_value_pointer
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Jun 2017 22:29:58 +0000 (22:29 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 21 Jun 2017 22:29:58 +0000 (22:29 +0000)
commit36f1a35f6931f67f7daec5aa7803a6475e8087ca
tree889baf8014d262a99a61e506c38e8b250ce27e47
parent3f741f1b6014b8c903e1ddbd8ce1b7394cc301cc
compiler: fix missing case in Array_type::get_value_pointer

    Update the code in Array_type::get_value_pointer that handles
    "lvalue" context to look for both regular var expressions
    and temp var expressions, since both can appear in array/slice
    index expressions on the left hand side of assignments.

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

From-SVN: r249486
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc