]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix live variable reuse in orderstmt
authorMatthew Dempsky <mdempsky@google.com>
Thu, 3 Dec 2015 20:14:07 +0000 (12:14 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 3 Dec 2015 21:29:22 +0000 (21:29 +0000)
commit7a4022ee36ec1b45233f6d9ae19e336f8a64a215
treecc83349bd5eb9364446e6a9a7f705c460fd80605
parent70d558be8ff98c4d4eaa1ee78bf6ce6ad813ea5b
cmd/compile: fix live variable reuse in orderstmt

The call "poptemp(t, order)" at line 906 should match up with the
assignment "t := marktemp(order)" at line 770, so use a new temporary
variable for stripping the ODCL nodes from a "case x := <-ch" node's
Ninit list.

Fixes #13469.
Passes toolstash/buildall.

Change-Id: Ia7eabd40c79cfdcb83df00b6fbd0954e0c44c5c7
Reviewed-on: https://go-review.googlesource.com/17393
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/order.go