]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: compute type eq/hash algorithm in CalcSize instead of on demand
authorKeith Randall <khr@golang.org>
Fri, 15 Mar 2024 00:39:01 +0000 (17:39 -0700)
committerKeith Randall <khr@golang.org>
Mon, 18 Mar 2024 15:30:00 +0000 (15:30 +0000)
commitfcfd824e31fa0160b9490496fdddd90f4b61f924
treee00215e3a4f3b2712fec633242a25832cecce10a
parentd25579293374bdc2d10864f7fa0ac9f89bb87fd9
cmd/compile: compute type eq/hash algorithm in CalcSize instead of on demand

For #65540

Actually more correct in some very weird, and probably impossible to
trigger currently, cases. For instance, a struct with a NOEQ
and a NOALG field (the old code would not report the noalg bit).

Change-Id: I36c473b59aa5775d8a520ac746b114d16a22699d
Reviewed-on: https://go-review.googlesource.com/c/go/+/571542
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/types/alg.go
src/cmd/compile/internal/types/algkind_string.go
src/cmd/compile/internal/types/size.go
src/cmd/compile/internal/types/type.go