mirror of
https://github.com/golang/go
synced 2024-11-19 02:24:41 -07:00
8c66e887f7
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_plan9.go | ||
external_unix.go | ||
external_windows.go | ||
external.go | ||
interp_test.go | ||
interp.go | ||
map.go | ||
ops.go | ||
reflect.go | ||
value.go |