cmd/compile: make more use of exported position information

Updates #19683.

Change-Id: I64b3b93a3ab14518a5376e1270bdd2a94bdd67ef
Reviewed-on: https://go-review.googlesource.com/59611
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Matthew Dempsky 2017-08-28 13:02:58 -07:00
parent d30f99647a
commit 3124439b3a
4 changed files with 36 additions and 25 deletions

View file

@ -874,7 +874,7 @@ func loadsys() {
n.Type = typ
declare(n, PFUNC)
case varTag:
importvar(Runtimepkg, sym, typ)
importvar(lineno, Runtimepkg, sym, typ)
default:
Fatalf("unhandled declaration tag %v", d.tag)
}