diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2026-03-30 13:15:38 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-31 10:58:53 -0700 |
| commit | 9002bd9fa1a3b500ca570844ea563967268a3878 (patch) | |
| tree | efb230d9569af0cfdf1cb58e932d5f7393db631a /test/codegen/memops_bigoffset.go | |
| parent | d9fbe4c90d956f7835224f4de1afcf799e8cc3ed (diff) | |
| download | go-9002bd9fa1a3b500ca570844ea563967268a3878.tar.xz | |
cmd/compile: ensure map/slice clearing expressions are walked
The order pass ensures that initialization operations for clear(expr)
are scheduled. However, if 'expr' is a conversion that the walk pass
subsequently optimizes away or transforms, the resulting nodes can
be left in an un-walked state.
These un-walked nodes reach the SSA backend, which does not expect
high-level IR, resulting in an ICE.
This change ensures the expression is always walked during the
transformation of the 'clear' builtin.
Fixes #78410
Change-Id: I1997a28af020f39b2d325a58429eff9495048b1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/760981
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'test/codegen/memops_bigoffset.go')
0 files changed, 0 insertions, 0 deletions
