]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow inlining labeled for-statement and switch-statement
authorwdvxdr <wdvxdr1123@gmail.com>
Wed, 13 Oct 2021 11:44:38 +0000 (19:44 +0800)
committerDan Scales <danscales@google.com>
Mon, 18 Oct 2021 15:38:40 +0000 (15:38 +0000)
commit74acbaf94ab3c7aaa7e22fda4f90920e90f11ead
tree9356befed5d1bf4cda3df65168c04ca2dccab611
parentcf51fb5d680a9a1ca98af3361e65722d07bff111
cmd/compile: allow inlining labeled for-statement and switch-statement

After CL 349012 and CL 350911, we can fully handle these
labeled statements, so we can allow them when inlining.

Updates #14768

Change-Id: I0ab3fd3f8d7436b49b1aedd946516b33c63f5747
Reviewed-on: https://go-review.googlesource.com/c/go/+/355497
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: David Chase <drchase@google.com>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/inline/inl.go
test/inline.go