1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00
go/src/cmd/compile
Keith Randall fbfc18c522 [dev.ssa] cmd/compile: don't issue nops for static data
It confuses live variable analysis to have a bunch of unreachable
no-ops at the end of a function.  Symptom is:
    gc/plive.go:483 panic: interface conversion: interface {} is nil, not *gc.BasicBlock

I don't see any reason why the old compiler needs these no-ops either.
all.bash passes with the equivalent code removed on master.

Change-Id: Ifcd2c3e139aa16314f08aebc9079b2fb7aa60556
Reviewed-on: https://go-review.googlesource.com/16132
Reviewed-by: David Chase <drchase@google.com>
2015-10-20 21:59:01 +00:00
..
internal [dev.ssa] cmd/compile: don't issue nops for static data 2015-10-20 21:59:01 +00:00
doc.go cmd/compile: add missing quotation mark 2015-07-24 22:12:14 +00:00
main.go