Although such a control-flow path is impossible by construction, we must avoid no-arg returns (even if unreachable) in non-void functions. Tested by adding a sanity-check that ssa.Return has the correct arity. Also: added ssautil.Switches() test. Fixes golang/go#7702 R=gri, axwalk CC=golang-codereviews https://golang.org/cl/46520043 |
||
|---|---|---|
| .. | ||
| a_test.go | ||
| b_test.go | ||
| boundmeth.go | ||
| coverage.go | ||
| fieldprom.go | ||
| ifaceconv.go | ||
| ifaceprom.go | ||
| initorder.go | ||
| methprom.go | ||
| mrvchain.go | ||
| recover.go | ||