From aeb256e98ac479e2b590d79f6237174343934d10 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 2 Jul 2025 10:00:42 -0700 Subject: 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Cuong Manh Le --- src/runtime/panic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime') 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 { -- cgit v1.3-5-g45d5