]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't set line number to 0 when building SSA
authorCherry Zhang <cherryyz@google.com>
Thu, 30 Jun 2016 10:36:31 +0000 (06:36 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 1 Jul 2016 01:12:24 +0000 (01:12 +0000)
commit29f0984a3558ef6e3e58a621791473a71b510365
tree072bdd9f482bbf45a018d33b60bbb9d8c2c2e064
parentb5aae1a2845f157a2565b856fb2d7773a0f7af25
cmd/compile: don't set line number to 0 when building SSA

The frontend may emit node with line number missing. In this case,
use the parent line number. Instead of changing every call site of
pushLine, do it in pushLine itself.

Fixes #16214.

Change-Id: I80390550b56e4d690fc770b01ff725b892ffd6dc
Reviewed-on: https://go-review.googlesource.com/24641
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/asm_test.go
src/cmd/compile/internal/gc/ssa.go