1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:24:41 -07:00
go/ssa/interp
Alan Donovan 8c66e887f7 go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through.
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
2014-01-02 15:12:23 -05:00
..
testdata go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through. 2014-01-02 15:12:23 -05:00
external_plan9.go go.tools/ssa/interp: fix Plan 9 build for Brad 2013-12-20 15:20:51 -08:00
external_unix.go go.tools/ssa/interp: fix Plan 9 build for Brad 2013-12-20 15:20:51 -08:00
external_windows.go go.tools/ssa/interp: fix Plan 9 build for Brad 2013-12-20 15:20:51 -08:00
external.go go.tools/ssa/interp: fix Plan 9 build for Brad 2013-12-20 15:20:51 -08:00
interp_test.go go.tools/ssa/interp: fix build breakage. 2013-11-13 18:50:24 -05:00
interp.go go.tools: fix build 2013-12-17 16:21:23 -08:00
map.go go.tools/ssa/interp: fixes to equivalence relations. 2013-09-16 15:22:19 -04:00
ops.go go.tools/ssa/interp: fix bug: recovered panic without NRPs should return zero values. 2013-12-05 21:22:57 -05:00
reflect.go go.tools/ssa: clarify spec of (*builder).complit(). 2013-10-31 17:59:52 -04:00
value.go go.tools/ssa/interp: improve print() on interfaces, and log message for panic. 2013-11-05 13:03:14 -05:00