Skip to content

Commit b386b62

Browse files
abner-chencrandall77
authored andcommitted
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 <[email protected]> Reviewed-by: Meidan Li <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 760f228 commit b386b62

File tree

1 file changed

+1
-1
lines changed
  • src/cmd/internal/obj/loong64

1 file changed

+1
-1
lines changed

src/cmd/internal/obj/loong64/obj.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ func (c *ctxt0) stacksplit(p *obj.Prog, framesize int32) *obj.Prog {
836836
}
837837
call.Mark |= BRANCH
838838

839-
unspill := c.cursym.Func().UnspillRegisterArgs(pcdata, c.newprog)
839+
unspill := c.cursym.Func().UnspillRegisterArgs(call, c.newprog)
840840

841841
// JMP start
842842
jmp := obj.Appendp(unspill, c.newprog)

0 commit comments

Comments
 (0)