]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't deadcode eliminate labels
authorKeith Randall <khr@golang.org>
Tue, 6 Nov 2018 18:16:17 +0000 (10:16 -0800)
committerKeith Randall <khr@golang.org>
Tue, 6 Nov 2018 18:50:16 +0000 (18:50 +0000)
commit95a4f793c077ab7b13fdb7505b65ff19a97a07f9
tree17f541a7a144d7cc80e811ff5ed92e4ca4bf6393
parent8b4692096bf85f04df53d4104cb82cc3c8095df7
cmd/compile: don't deadcode eliminate labels

Dead-code eliminating labels is tricky because there might
be gotos that can still reach them.

Bug probably introduced with CL 91056

Fixes #28616

Change-Id: I6680465134e3486dcb658896f5172606cc51b104
Reviewed-on: https://go-review.googlesource.com/c/147817
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Iskander Sharipov <iskander.sharipov@intel.com>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue28616.go [new file with mode: 0644]