OpcodeDispatcher: Treat ThunkOp ExitFunction as a return

ThunkOp acts as an implicit return, mark it as such so the call-ret
stack entry from the caller is popped
This commit is contained in:
Billy Laws committed 2025-07-24 14:53:09 +01:00
1 parent 31f8abfa61
commit 20efadbe66
1 file changed
+1 -1
@@ -126,7 +126,7 @@ void OpDispatchBuilder::ThunkOp(OpcodeArgs) {
auto NewRIP = Pop(GPRSize);
// Store the new RIP
ExitFunction(NewRIP);
ExitFunction(NewRIP, BranchHint::Return);
BlockSetRIP = true;
}