iR3000A: Fix variable is assigned a value that is never used warning.

Codacy.
This commit is contained in:
lightningterror 2022-11-26 20:52:56 +01:00
parent fbc4a5cac2
commit 276b1b5539
1 changed files with 1 additions and 2 deletions

View File

@ -1216,10 +1216,9 @@ void psxSetBranchReg(u32 reg)
{
const bool swap = psxTrySwapDelaySlot(reg, 0, 0);
int wbreg = -1;
if (!swap)
{
wbreg = _allocX86reg(X86TYPE_PCWRITEBACK, 0, MODE_WRITE | MODE_CALLEESAVED);
const int wbreg = _allocX86reg(X86TYPE_PCWRITEBACK, 0, MODE_WRITE | MODE_CALLEESAVED);
_psxMoveGPRtoR(xRegister32(wbreg), reg);
psxRecompileNextInstruction(true, false);