]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix invalid switch case value panic
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 23 Sep 2017 22:04:31 +0000 (23:04 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 24 Sep 2017 10:15:52 +0000 (10:15 +0000)
commit24ca86f3083e8dd4ad5ea61e26acf02440d0ad35
treef460f0c05b2c0023ca55e67fa84b9185f790098f
parent7739b8a97fb767ceb141af05a1213b538c32e8da
cmd/compile: fix invalid switch case value panic

This is a regression introduced by myself in golang.org/cl/41852,
confirmed by the program that reproduces the crash that can be seen in
the added test.

Fixes #21988.

Change-Id: I18d5b2b3de63ced84db705b18490b00b16b59e02
Reviewed-on: https://go-review.googlesource.com/65655
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/swt.go
test/fixedbugs/issue21988.go [new file with mode: 0644]