]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: restore not-in-heap check for map/channel type
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 10 Jul 2024 17:00:32 +0000 (00:00 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 24 Jul 2024 00:11:44 +0000 (00:11 +0000)
commit88833c90457e02edf4641cf914512ab920380431
tree63ea7df5c389c93010bb9c466e283c43d5aa2e4a
parent864aa8644879983d903e59995e6a31c95c50e8ff
cmd/compile: restore not-in-heap check for map/channel type

CL 388538 removed unused -G=0 node types.

However, the code for checking not-in-heap types for map and channel
type was also removed, which is likely not intentional.

This CL restores the check, porting removed code to noder.

Updates #54846

Change-Id: I2995836b90e36d2684197fefc9829fddfffe8585
Reviewed-on: https://go-review.googlesource.com/c/go/+/597535
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/noder/irgen.go