]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: separate type and expression switch typechecking
authorMatthew Dempsky <mdempsky@google.com>
Tue, 10 Sep 2019 17:36:47 +0000 (10:36 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 11 Sep 2019 23:01:45 +0000 (23:01 +0000)
commite7e2b1c2b91320ef0ddf025d330061d56115dd53
tree15b74343885acf9a84a5a41d376f9cda905e71e2
parent28287552bcdaca6efd43e75d6bf427a4d2237536
cmd/compile: separate type and expression switch typechecking

While superficially type and expression switch handling seem similar
and that it would be worthwhile to unify typechecking them, it turns
out they're actually different enough that separately handling them is
fewer lines of code and easier to understand as well.

Passes toolstash-check.

Change-Id: I357d6912dd580639b6001bccdb2e227ed83c6fe9
Reviewed-on: https://go-review.googlesource.com/c/go/+/194566
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/swt.go