compiler: avoid generating unnamed bool type descriptor
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Jul 2020 20:43:09 +0000 (13:43 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 11 Jul 2020 19:41:28 +0000 (12:41 -0700)
commite109f6e438b72ef3e403162971068d28d09b82f5
tree8ead189e618f8ef1456c8b02c81de0cc1585d8a6
parente7d6d8f9f7b687c8e7438523d7d6f7a539ec7287
compiler: avoid generating unnamed bool type descriptor

We were generating it in cases where a boolean expression was
converted directly to an empty interface type.

Fixes golang/go#40152

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/242002
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/names.cc