• Matthew Dempsky's avatar
    cmd/compile: change dead code into assert · 22a204dd
    Matthew Dempsky authored
    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: 's avatarKeith Randall <khr@golang.org>
    22a204dd
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
newlink Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...
yacc Loading commit data...