]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use fake package for allocating autos
authorKeith Randall <khr@golang.org>
Mon, 6 Jun 2016 17:56:42 +0000 (10:56 -0700)
committerKeith Randall <khr@golang.org>
Tue, 7 Jun 2016 06:04:23 +0000 (06:04 +0000)
commit2f088884aeab7f34ca69c0b8ab21c9694c628e19
treeba4b23069e94f220561da6255ae2999935b42c7e
parent27c5dcffef590ac9dbc31f3d513f1b7d058907f6
cmd/compile: use fake package for allocating autos

Make sure auto names don't conflict with function names. Before this CL,
we confused name a.len (the len field of the slice a) with a.len (the function
len declared on a).

Fixes #15961

Change-Id: I14913de697b521fb35db9a1b10ba201f25d552bb
Reviewed-on: https://go-review.googlesource.com/23789
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/ssa.go
test/fixedbugs/issue15961.go [new file with mode: 0644]