]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use right line number for conversion expression
authorKeith Randall <khr@golang.org>
Wed, 25 Aug 2021 20:03:30 +0000 (13:03 -0700)
committerKeith Randall <khr@golang.org>
Tue, 31 Aug 2021 21:26:33 +0000 (21:26 +0000)
commitbb0b511738713c7a8cc4c194e037a7ea852751ca
treeb5229a402115523e0804b292db164c768caf55bc
parent7637345b6ea00faf6c453a5f8128d8b548ee0a2c
cmd/compile: use right line number for conversion expression

Use the position of the actual conversion operation instead of base.Pos.

Fixes #47880

Change-Id: I56adc134e09cb7fd625adc0a847c1a6b3e254b1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/345095
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/walk/convert.go