]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix inlining labeled switch statements
authorwdvxdr <wdvxdr1123@gmail.com>
Mon, 25 Oct 2021 09:54:11 +0000 (17:54 +0800)
committerDan Scales <danscales@google.com>
Mon, 25 Oct 2021 16:07:11 +0000 (16:07 +0000)
commitc6e82e5808f4fb6da0fcc9754e29a220451a0dfd
treed464299563cf896fad368a9dac148af2a184c4c2
parent2c66cab8a7b569b2dc5a7ab112ba4579f39c5dbb
cmd/compile: fix inlining labeled switch statements

CL 357649 fixes inlining labeled FOR/RANGE loops,
we should do same translation for inlined SWITCH's label

Fixes #49145

Change-Id: I9a6f365f57e974271a1eb279b38e81f9b5148788
Reviewed-on: https://go-review.googlesource.com/c/go/+/358315
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/inline/inl.go
test/fixedbugs/issue49145.go [new file with mode: 0644]
test/fixedbugs/issue49145.out [new file with mode: 0644]