]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix reslice
authorKeith Randall <khr@golang.org>
Sun, 1 May 2016 05:28:37 +0000 (22:28 -0700)
committerKeith Randall <khr@golang.org>
Sun, 1 May 2016 22:11:45 +0000 (22:11 +0000)
commitade0eb2f0689b4d88d425451387c516013fd4b20
tree853ab284b22b6b1913df4fd436684965e236d11b
parent24c05e7e695767a46ce6e48d2492c29ba7adffc4
cmd/compile: fix reslice

:= is the wrong thing here.  The new variable masks the old
variable so we allocate the slice afresh each time around the loop.

Change-Id: I759c30e1bfa88f40decca6dd7d1e051e14ca0844
Reviewed-on: https://go-review.googlesource.com/22679
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/compile/internal/ssa/regalloc.go