mirror of https://github.com/PCSX2/pcsx2.git
iR3000A: Fix variable is assigned a value that is never used warning.
Codacy.
This commit is contained in:
parent
fbc4a5cac2
commit
276b1b5539
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue