compiler: use correct value type in 2-case select send

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 23 July 2019 17:20 EDT

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

8430765bb36 compiler: use correct value type in 2-case select send
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/statements.cc | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)

Upstream: gcc.gnu.org


  • Share