From: Guoqi Chen Date: Mon, 28 Apr 2025 11:35:38 +0000 (+0800) Subject: cmd/internal/obj/loong64: fix the error parameters when calling UnspillRegisterArgs X-Git-Tag: go1.25rc1~396 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b386b628521780c048af14a148f373c84e687b26;p=gostls13.git cmd/internal/obj/loong64: fix the error parameters when calling UnspillRegisterArgs This bug was introduced in CL 648518. Fixes #73518. Change-Id: I4988dd0b636c6a6a48d2aa2e2ae868e43f69995a Reviewed-on: https://go-review.googlesource.com/c/go/+/668475 LUCI-TryBot-Result: Go LUCI Reviewed-by: Meidan Li Reviewed-by: Dmitri Shuralyov Reviewed-by: Keith Randall --- diff --git a/src/cmd/internal/obj/loong64/obj.go b/src/cmd/internal/obj/loong64/obj.go index 0d098f74f8..e9ff365b8c 100644 --- a/src/cmd/internal/obj/loong64/obj.go +++ b/src/cmd/internal/obj/loong64/obj.go @@ -836,7 +836,7 @@ func (c *ctxt0) stacksplit(p *obj.Prog, framesize int32) *obj.Prog { } call.Mark |= BRANCH - unspill := c.cursym.Func().UnspillRegisterArgs(pcdata, c.newprog) + unspill := c.cursym.Func().UnspillRegisterArgs(call, c.newprog) // JMP start jmp := obj.Appendp(unspill, c.newprog)