]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: escape analysis, don't always escape variadic args
authorDavid Chase <drchase@google.com>
Wed, 30 Sep 2015 18:41:00 +0000 (14:41 -0400)
committerDavid Chase <drchase@google.com>
Sun, 4 Oct 2015 20:45:35 +0000 (20:45 +0000)
commitf7a39a54e9c75207bdf2f54fbb5e41d947e058f1
treefd37cfd74aa912a1befdc3d8281e0b9aafc30ab0
parentf78a4c84ac8ed44aaf331989aa32e40081fd8f13
cmd/compile: escape analysis, don't always escape variadic args

Turns out the summary information for the ... args was
already correctly computed, all that lacked was to make
use of it and correct tests that documented our prior
deficiencies.

Fixes #12006

Change-Id: Ie8adfab7547f179391d470679598f0904aabf9f7
Reviewed-on: https://go-review.googlesource.com/15200
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/cmd/compile/internal/gc/esc.go
test/escape2.go
test/escape2n.go
test/fixedbugs/issue12006.go [new file with mode: 0644]