]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: fix unified IR don't report type size too large error
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 25 May 2022 16:27:45 +0000 (23:27 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 9 Jun 2022 01:34:20 +0000 (01:34 +0000)
commitd6df08693cd1639a7d9f0df292b4aa469b1cd748
tree9d0d236ce0fbae0b70fe76fa3aa82514b99d3256
parente7ef58542c7f12842cdefdb1cd5e1b794996dc96
[dev.unified] cmd/compile: fix unified IR don't report type size too large error

For error reported during type size calculation, base.Pos needs to be
set, otherwise, the compiler will treat them as the same error and only
report once. Old typechecker and irgen all set base.Pos before
processing types, this CL do the same thing for unified IR.

Updates #53058

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