]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: for loop init statement misanalyzed by escape analysis
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 13 Feb 2014 19:04:43 +0000 (19:04 +0000)
committerDaniel Morsing <daniel.morsing@gmail.com>
Thu, 13 Feb 2014 19:04:43 +0000 (19:04 +0000)
commite0a55a6c9826f3b0548a2d78be82931ad73ac218
tree84883e7571cce48cdd45dd97d5e3488a2f0e8cde
parent7861cd6082993becfedeaab75567eaba0c9a03f8
cmd/gc: for loop init statement misanalyzed by escape analysis

Logically, the init statement is in the enclosing scopes loopdepth, not inside the for loop.

Fixes #7313.

LGTM=rsc
R=golang-codereviews, gobot, rsc
CC=golang-codereviews
https://golang.org/cl/62430043
src/cmd/gc/esc.c
test/escape2.go