Merge pull request #4782 from bylaws/oo0

OpcodeDispatcher: Simplify CALLOp return addr calc
This commit is contained in:
Ryan Houdek authored and GitHub committed 2025-08-14 11:23:21 -07:00
commit 2f930b201a
4 files changed
+46 -92

No files matched your search

@@ -526,8 +526,7 @@ void OpDispatchBuilder::CALLOp(OpcodeArgs) {
// Call instruction only uses up to 32-bit signed displacement
int64_t TargetOffset = Op->Src[0].Literal();
auto NewRIP = GetRelocatedPC(Op, TargetOffset);
auto ConstantPC = Sub(GPRSize, NewRIP, TargetOffset);
auto ConstantPC = GetRelocatedPC(Op);
// Push the return address.
Push(GPRSize, ConstantPC);