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 <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>
This commit is contained in:
Guoqi Chen 2025-04-28 19:35:38 +08:00 committed by Keith Randall
parent 760f22848d
commit b386b62852

View File

@ -836,7 +836,7 @@ func (c *ctxt0) stacksplit(p *obj.Prog, framesize int32) *obj.Prog {
} }
call.Mark |= BRANCH call.Mark |= BRANCH
unspill := c.cursym.Func().UnspillRegisterArgs(pcdata, c.newprog) unspill := c.cursym.Func().UnspillRegisterArgs(call, c.newprog)
// JMP start // JMP start
jmp := obj.Appendp(unspill, c.newprog) jmp := obj.Appendp(unspill, c.newprog)