]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow inlining of functions with switch statements
authorTodd Neal <todd@tneal.org>
Thu, 17 Mar 2016 02:29:17 +0000 (21:29 -0500)
committerTodd Neal <todd@tneal.org>
Mon, 21 Mar 2016 23:05:10 +0000 (23:05 +0000)
commite41f527f4d56a94b33ab73efaae3575760916194
treeadc0617cdfa94acf19cae234ea9bbbd9a29a97a7
parenta14537816eb960ae24ce13364390ded124f5ebc8
cmd/compile: allow inlining of functions with switch statements

Allow inlining of functions with switch statements as long as they don't
contain a break or type switch.

Fixes #13071

Change-Id: I057be351ea4584def1a744ee87eafa5df47a7f6d
Reviewed-on: https://go-review.googlesource.com/20824
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/inl.go
test/inline.go