diff options
| author | Michael Pratt <mpratt@google.com> | 2024-09-16 13:17:39 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-09-16 19:10:50 +0000 |
| commit | 72739bbfa680b4bc95a6597d55f2c4d5354af51f (patch) | |
| tree | 256cb00834b9accb4efab7bde6e2112d9ad7bb20 /src/cmd/compile/internal/ir/node.go | |
| parent | 5b2f71a2c3f66b93d78bf0d0d7e5b6f0b54caf93 (diff) | |
| download | go-72739bbfa680b4bc95a6597d55f2c4d5354af51f.tar.xz | |
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>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
| -rw-r--r-- | src/cmd/compile/internal/ir/node.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go index 4f5ad53d63..1daa181610 100644 --- a/src/cmd/compile/internal/ir/node.go +++ b/src/cmd/compile/internal/ir/node.go @@ -303,7 +303,6 @@ const ( // arch-specific opcodes OTAILCALL // tail call to another function OGETG // runtime.getg() (read g pointer) - OGETCALLERPC // runtime.getcallerpc() (continuation PC in caller frame) OGETCALLERSP // runtime.getcallersp() (stack pointer in caller frame) OEND |
