]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't use line numbers from ONAME and named OLITERALs
authorKeith Randall <khr@golang.org>
Tue, 26 Apr 2016 22:22:33 +0000 (15:22 -0700)
committerKeith Randall <khr@golang.org>
Wed, 27 Apr 2016 15:03:38 +0000 (15:03 +0000)
commita19e60b2c3c388abd3503da3fc2659bef1e76b46
tree4291bc907932b2e513f6119e32f8c9dafe105aab
parentc9389a101b020b41a954ac35642ec254c8344238
cmd/compile: don't use line numbers from ONAME and named OLITERALs

The line numbers of ONAMEs are the location of their
declaration, not their use.

The line numbers of named OLITERALs are also the location
of their declaration.

Ignore both of these.  Instead, we will inherit the line number from
the containing syntactic item.

Fixes #14742
Fixes #15430

Change-Id: Ie43b5b9f6321cbf8cead56e37ccc9364d0702f2f
Reviewed-on: https://go-review.googlesource.com/22479
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/ssa.go