]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: remove an incorrect assertion in escape analysis.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 20 Dec 2012 22:27:28 +0000 (23:27 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 20 Dec 2012 22:27:28 +0000 (23:27 +0100)
commit1dcf658f6dbc6b09ead3fb7561cd1832d9a697a1
treede5d83edf843149e1434bd425a67977a3093b07b
parentff27cdb625c7870d3a0b846dae70fc339b021b62
cmd/gc: remove an incorrect assertion in escape analysis.

A fatal error used to happen when escassign-ing a multiple
function return to a single node. However, the situation
naturally appears when using "go f(g())" or "defer f(g())",
because g() is escassign-ed to sink.

Fixes #4529.

R=golang-dev, lvd, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6920060
src/cmd/gc/esc.c
test/escape2.go
test/fixedbugs/issue4529.go [new file with mode: 0644]