]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix another invalid switch case panic
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Sep 2017 09:51:24 +0000 (10:51 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Sep 2017 21:19:06 +0000 (21:19 +0000)
commit39e523792e33a0bd9217161ca53c6c0cb2324a99
treeb1fd68ccae2af8706a3e8839d2947f175a494ba0
parent70bcd2c54e8f26ee67372dffa56a86ae9701e843
cmd/compile: fix another invalid switch case panic

Very similar fix to the one made in golang.org/cl/65655. This time it's
for switches on interface values, as we look for duplicates in a
different manner to keep types in mind.

As before, add a small regression test.

Updates #22001.
Fixes #22063.

Change-Id: I9a55d08999aeca262ad276b4649b51848a627b02
Reviewed-on: https://go-review.googlesource.com/66450
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/swt.go
test/fixedbugs/issue22063.go [new file with mode: 0644]