go/src/cmd/go
Daniel Martí be9c534cde cmd/compile: don't crash on -d=ssa/
I forgot how to pull up the ssa debug options help, so instead of
writing -d=ssa/help, I just wrote -d=ssa/. Much to my amusement, the
compiler just crashed, as shown below. Fix that.

	panic: runtime error: index out of range

	goroutine 1 [running]:
	cmd/compile/internal/ssa.PhaseOption(0x7ffc375d2b70, 0x0, 0xdbff91, 0x5, 0x1, 0x0, 0x0, 0x1, 0x1)
	    /home/mvdan/tip/src/cmd/compile/internal/ssa/compile.go:327 +0x1876
	cmd/compile/internal/gc.Main(0xde7bd8)
	    /home/mvdan/tip/src/cmd/compile/internal/gc/main.go:411 +0x41d0
	main.main()
	    /home/mvdan/tip/src/cmd/compile/main.go:51 +0xab

Change-Id: Ia2ad394382ddf8f4498b16b5cfb49be0317fc1aa
Reviewed-on: https://go-review.googlesource.com/c/154421
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2019-02-26 17:50:01 +00:00
..
internal cmd/go/internal/imports: use the full path to resolve symlinks 2019-02-23 22:02:23 +00:00
testdata cmd/compile: don't crash on -d=ssa/ 2019-02-26 17:50:01 +00:00
alldocs.go cmd/go: clarify @none effect on dependants modules 2019-02-04 20:20:15 +00:00
go11.go
go_test.go cmd/go: set GO111MODULE=off explicitly in tests that assume GOPATH mode 2019-02-19 19:57:03 +00:00
go_unix_test.go
go_windows_test.go cmd/go: uses SID of group Guests to test ACL 2018-07-28 09:06:26 +00:00
help_test.go cmd/go: test whether alldocs.go is up to date 2018-08-20 22:20:09 +00:00
main.go cmd/go: correctly suggest tidy instead of nonexistent fix for -fix 2018-11-15 23:37:20 +00:00
mkalldocs.sh all: use consistent shebang line across all shell scripts 2018-08-22 16:41:11 +00:00
note_test.go
proxy_test.go cmd/go: fix detection of unexpected files in downloaded zips 2018-11-16 17:49:55 +00:00
script_test.go cmd/go: allow "stdout" and "stderr" as inputs to script_test "cp" command 2019-02-26 02:45:57 +00:00
vendor_test.go all: use strings.ReplaceAll and bytes.ReplaceAll where applicable 2018-09-26 22:14:25 +00:00