]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove ir.OGETCALLERPC
authorMichael Pratt <mpratt@google.com>
Mon, 16 Sep 2024 17:17:39 +0000 (13:17 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 16 Sep 2024 19:10:50 +0000 (19:10 +0000)
commit72739bbfa680b4bc95a6597d55f2c4d5354af51f
tree256cb00834b9accb4efab7bde6e2112d9ad7bb20
parent5b2f71a2c3f66b93d78bf0d0d7e5b6f0b54caf93
cmd/compile: remove ir.OGETCALLERPC

Nothing ever creates this op, so it can be safely removed. Note that SSA
still intrinsifies runtime.getcallerpc.

The similar ir.OGETCALLERSP is still used for defer handling in
typecheck/func.go:tcRecover.

For #54766.

Change-Id: I6bdb2072af2c068080ae977c0cbd4684d0c7c752
Reviewed-on: https://go-review.googlesource.com/c/go/+/613496
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/cmd/compile/internal/escape/expr.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/op_string.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/typecheck/typecheck.go
src/cmd/compile/internal/walk/expr.go
src/cmd/compile/internal/walk/walk.go