1
0
mirror of https://github.com/golang/go synced 2024-10-05 14:01:21 -06:00
go/src/cmd/compile
Matthew Dempsky 22a204dd0f cmd/compile: change dead code into assert
After fixing #13587, I noticed that the "OAS2FUNC in disguise" block
looked like it probably needed write barriers too.  However, testing
revealed the multi-value "return f()" case was already being handled
correctly.

It turns out this block is dead code due to "return f()" already being
transformed into "t1, t2, ..., tN := f(); return t1, t2, ..., tN" by
orderstmt when f is a multi-valued function.

Updates #13587.

Change-Id: Icde46dccc55beda2ea5fd5fcafc9aae26cec1552
Reviewed-on: https://go-review.googlesource.com/17759
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2015-12-15 18:52:01 +00:00
..
internal cmd/compile: change dead code into assert 2015-12-15 18:52:01 +00:00
doc.go cmd/compile: document -trimpath 2015-11-16 20:38:34 +00:00
main.go cmd/compile: set log prefix and suppress date 2015-11-19 23:55:50 +00:00