]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] cmd/compile: don't deadcode eliminate labels
authorKeith Randall <khr@golang.org>
Tue, 6 Nov 2018 18:16:17 +0000 (10:16 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Nov 2018 00:49:09 +0000 (00:49 +0000)
commitc92a20818bb1b49911c2a23a0bafd5e34c4f7f7c
treea4deb92a57fb2f9131c7369edb45c1b9e4464ba5
parente602388f98e174895e9adb5f2516b38dc692d45d
[release-branch.go1.11] 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 #28617

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>
Reviewed-on: https://go-review.googlesource.com/c/147857
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue28616.go [new file with mode: 0644]