]> Cypherpunks repositories - gostls13.git/commit
internal/maps,cmd/compile/internal/walk: replace calls to mapaccess1* with mapaccess2*
authorArsenySamoylov <samoylov.arseny@gmail.com>
Tue, 13 Jan 2026 10:06:28 +0000 (13:06 +0300)
committerGopher Robot <gobot@golang.org>
Mon, 2 Feb 2026 21:24:26 +0000 (13:24 -0800)
commit62d08234b797806796af0d51051f2e13caa42e2a
treef37768122ffc5e31fddd6c47548ccf776fd69c92
parent35abaf75c35adc9b22038885781b8be70a8476e0
internal/maps,cmd/compile/internal/walk: replace calls to mapaccess1* with mapaccess2*

mapaccess1* and mapaccess2* functions share the same implementation and differ only in whether the boolean "found" is returned.

This change replaces mapaccess1* calls with mapaccess2*.
We can do this transparently, since the call site can safely discard the second (boolean) result.

Ideally, mapacces1* functions could be removed entirely, but this change keeps them as thin wrappers for compatibility.

Fixes #73196
Change-Id: I07c3423d22ed1095ac3666d00e134c2747b2f9c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/736020
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/walk/assign.go
src/cmd/compile/internal/walk/expr.go
src/cmd/compile/internal/walk/walk.go
src/internal/runtime/maps/runtime.go
src/internal/runtime/maps/runtime_fast32.go
src/internal/runtime/maps/runtime_fast64.go
src/internal/runtime/maps/runtime_faststr.go
src/runtime/map.go