compiler: use correct value type in 2-case select send
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Jul 2019 17:20:36 +0000 (17:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Jul 2019 17:20:36 +0000 (17:20 +0000)
commit40768ee0bc9965d109692f884f8588626e01e3fe
tree0ca33f701cbac984f561bacd9fef3701d8c76eda
parent9bf40084738e155bf69ab7215a69f74d589931d1
compiler: use correct value type in 2-case select send

    In the channel-send case, the value to be sent may needs an
    (implicit) type conversion to the channel element type. This CL
    ensures that we use the correct value type for the send.

    Fixes golang/go#33235.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/187177

From-SVN: r273743
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/statements.cc