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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| external.go | ||
| external_plan9.go | ||
| external_unix.go | ||
| external_windows.go | ||
| interp.go | ||
| interp_test.go | ||
| map.go | ||
| ops.go | ||
| reflect.go | ||
| value.go | ||