]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: propagate correct line numbers in treecopy
authorDavid Chase <drchase@google.com>
Sat, 23 May 2015 02:01:01 +0000 (22:01 -0400)
committerDavid Chase <drchase@google.com>
Wed, 27 May 2015 17:29:15 +0000 (17:29 +0000)
commit05d8f1d1664e6413756ed4e18392310b75501ff4
tree28e10f6a96a35337244af9ec99a9df7944e0ac66
parent21500012c18adb985876507c0495c4d7990ff642
cmd/compile: propagate correct line numbers in treecopy

Added a lineno parameter to treecopy and listtreecopy
(ignored if = 0).  When nodes are copied the copy is
assigned the non-zero lineno (normally this would be
the destination).

Fixes #8183

Change-Id: Iffb767a745093fb89aa08bf8a7692c2f0122be98
Reviewed-on: https://go-review.googlesource.com/10334
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/racewalk.go
src/cmd/compile/internal/gc/subr.go
test/fixedbugs/issue8183.go [new file with mode: 0644]