]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj/loong64: fix the error parameters when calling UnspillRegisterArgs
authorGuoqi Chen <chenguoqi@loongson.cn>
Mon, 28 Apr 2025 11:35:38 +0000 (19:35 +0800)
committerKeith Randall <khr@google.com>
Tue, 29 Apr 2025 01:54:08 +0000 (18:54 -0700)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/internal/obj/loong64/obj.go

index 0d098f74f8929ee58c4912d066b6770bc7f3c4a2..e9ff365b8c6c431c36d064b498da4cd38c7c1b5a 100644 (file)
@@ -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)