]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix ... escape analysis bug
authorRuss Cox <rsc@golang.org>
Fri, 9 May 2014 19:40:45 +0000 (15:40 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 9 May 2014 19:40:45 +0000 (15:40 -0400)
commitc99dce2b058b2260f05d694c1eaf0bbf16e79d27
treeff66353ee78f7934d15f8029068dd0020f394190
parent1848d71445adc043b8c70cf80a36819b4b84efbd
cmd/gc: fix ... escape analysis bug

If the ... element type contained no pointers,
then the escape analysis did not track the ... itself.
This manifested in an escaping ...byte being treated
as non-escaping.

Fixes #7934.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/100310043
src/cmd/gc/esc.c
src/cmd/gc/order.c
test/escape2.go