]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: set base.Pos when process assignDef in Unified IR
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 7 Jun 2022 02:22:32 +0000 (09:22 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 9 Jun 2022 01:34:36 +0000 (01:34 +0000)
commitc50c6bbc030ea170320f438c3f328fa475e87e2b
treedeb902c7b16e8ace599c9a068788b03f107f965f
parentd6df08693cd1639a7d9f0df292b4aa469b1cd748
[dev.unified] cmd/compile: set base.Pos when process assignDef in Unified IR

CL 410343 changes Unified IR to visit LHS before RHS/X in assign/for
statement. Thus, it needs to set base.Pos before processing assignee
expression, so invalid type can be reported with correct position.

Updates #53058

Change-Id: Ic9f60cbf35c8bd71cb391e806396572c37811af7
Reviewed-on: https://go-review.googlesource.com/c/go/+/410794
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/noder/reader.go
test/run.go