]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: restore lineno before returning in defaultlitreuse
authorMatthew Dempsky <mdempsky@google.com>
Thu, 5 Sep 2019 22:14:02 +0000 (15:14 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 6 Sep 2019 06:20:27 +0000 (06:20 +0000)
commit9da99049ba45abb4e3b91ba30a4af8dc2d24f1b1
tree04ef74ee40308d19942d09f8f15cefd7208d0f20
parent3aae49b8b48a458837abb2dc6bb09f5e5ad976c6
cmd/compile: restore lineno before returning in defaultlitreuse

This affects the position information that's associated with the
implicit OCONV nodes created in assignconvfn.

Not super important and the followup rewrite CL fixes this too, but
fixing it separately is easy and makes toolstash-check happier.

Change-Id: Ifd65dc524b367812d14a4d996647a5d40665fb38
Reviewed-on: https://go-review.googlesource.com/c/go/+/193606
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/const.go