]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix issue with method wrappers not having escape analysis run on them.
authorDaniel Morsing <daniel.morsing@gmail.com>
Tue, 2 Jul 2013 15:12:08 +0000 (17:12 +0200)
committerDaniel Morsing <daniel.morsing@gmail.com>
Tue, 2 Jul 2013 15:12:08 +0000 (17:12 +0200)
commit7cfa8310c75bfe8534a61f0f64116cb508d6f10d
tree5fc28c40b52ef0071c627595f2eac5947565b69e
parent428ea6865c7eff6d8632faa18335c64d4ae9f422
cmd/gc: fix issue with method wrappers not having escape analysis run on them.

Escape analysis needs the right curfn value on a dclfunc node, otherwise it will not analyze the function.
When generating method value wrappers, we forgot to set the curfn correctly.

Fixes #5753.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/10383048
src/cmd/gc/closure.c
test/fixedbugs/issue5753.go [new file with mode: 0644]