]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix inlining of switch issue
authorTodd Neal <todd@tneal.org>
Sat, 2 Apr 2016 04:28:14 +0000 (23:28 -0500)
committerTodd Neal <todd@tneal.org>
Sat, 2 Apr 2016 12:38:00 +0000 (12:38 +0000)
commitac8d97b6796aad8ca33db9d377064ddb3952a834
tree50e0e0ca4a16309f5c3b1851153427ee647e9a13
parent6a0bb87bd0bf0fdf8ddbd35f77a75ebd412f61b0
cmd/compile: fix inlining of switch issue

The issue was seen when inlining an exported function that contained
a fallthrough statement.

Fixes #15071

Change-Id: I1e8215ad49d57673dba7e8f8bd2ed8ad290dc452
Reviewed-on: https://go-review.googlesource.com/21452
Reviewed-by: Dave Cheney <dave@cheney.net>
src/cmd/compile/internal/gc/fmt.go
test/fixedbugs/issue15071.dir/exp/exp.go [new file with mode: 0644]
test/fixedbugs/issue15071.dir/main.go [new file with mode: 0644]