From e6025cc0876ccf8cb756e82383f76c069bc35a65 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 8 Sep 2024 11:15:06 -0700 Subject: [PATCH] Arm64: Fix warning This variable is only used in a log message no, so move it there. --- FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp b/FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp index 0469056b05..b8defb9b37 100644 --- a/FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp +++ b/FEXCore/Source/Interface/Core/JIT/Arm64/MemoryOps.cpp @@ -133,7 +133,6 @@ DEF_OP(StoreContextPair) { DEF_OP(LoadRegister) { const auto Op = IROp->C(); - const auto OpSize = IROp->Size; if (Op->Class == IR::GPRClass) { LOGMAN_THROW_A_FMT(Op->Reg < StaticRegisters.size(), "out of range reg"); @@ -145,7 +144,7 @@ DEF_OP(LoadRegister) { } else if (Op->Class == IR::FPRClass) { [[maybe_unused]] const auto regSize = HostSupportsAVX256 ? Core::CPUState::XMM_AVX_REG_SIZE : Core::CPUState::XMM_SSE_REG_SIZE; LOGMAN_THROW_A_FMT(Op->Reg < StaticFPRegisters.size(), "out of range reg"); - LOGMAN_THROW_A_FMT(OpSize == regSize, "expected sized"); + LOGMAN_THROW_A_FMT(IROp->Size == regSize, "expected sized"); const auto guest = StaticFPRegisters[Op->Reg]; const auto host = GetVReg(Node);