]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use better fatal message for staticValue1
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 22 May 2025 13:57:33 +0000 (20:57 +0700)
committerGopher Robot <gobot@golang.org>
Thu, 24 Jul 2025 16:06:19 +0000 (09:06 -0700)
commit26338a7f691b45017168b6523c95d4578a2cfd4d
treed8c0c9f8de63e74b447525ee5c1936b8192e2cc8
parent8587ba272ede9b6607ec06822e743db71f3ba563
cmd/compile: use better fatal message for staticValue1

So the position of the wrong assignment statement will be reported,
instead of using incorrect base.Pos one.

Notice while fixing issue #73823.

Change-Id: I53f240bf99d11b5f5082ee4ca0903d9f099881b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/675495
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/reassignment.go