diff options
| author | Keith Randall <khr@golang.org> | 2025-07-02 10:00:42 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2025-07-25 11:26:40 -0700 |
| commit | aeb256e98ac479e2b590d79f6237174343934d10 (patch) | |
| tree | 5860ad404b5ebabf225d93e3198d5b88dc5616c8 /src/runtime | |
| parent | 08376e1a9c57d4b07a77d156810d3fec46caba79 (diff) | |
| download | go-aeb256e98ac479e2b590d79f6237174343934d10.tar.xz | |
cmd/compile: remove unused arg from gorecover
We don't need this argument anymore to match up
a recover with its corresponding panic.
Change-Id: I5d3646cdd766259ee9d3d995a2f215f02e17abc6
Reviewed-on: https://go-review.googlesource.com/c/go/+/685555
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/panic.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index bf79b6518e..8f9ab4dd47 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -1083,7 +1083,7 @@ func (p *_panic) initOpenCodedDefers(fn funcInfo, varp unsafe.Pointer) bool { } // The implementation of the predeclared function recover. -func gorecover(_ uintptr) any { +func gorecover() any { gp := getg() p := gp._panic if p == nil || p.goexit || p.recovered { |
