From d1161de4e4e3b28eefaeda6d403c211b3fbf5e68 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 31 Jan 2021 08:00:58 -0800 Subject: [PATCH] Removes warning from Static Register Allocation Pass --- .../Interface/IR/Passes/StaticRegisterAllocationPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/External/FEXCore/Source/Interface/IR/Passes/StaticRegisterAllocationPass.cpp b/External/FEXCore/Source/Interface/IR/Passes/StaticRegisterAllocationPass.cpp index a1d3dbfac..3cc2bce8d 100644 --- a/External/FEXCore/Source/Interface/IR/Passes/StaticRegisterAllocationPass.cpp +++ b/External/FEXCore/Source/Interface/IR/Passes/StaticRegisterAllocationPass.cpp @@ -50,7 +50,7 @@ bool StaticRegisterAllocationPass::Run(IREmitter *IREmit) { for (auto [BlockNode, BlockIROp] : CurrentIR.GetBlocks()) { for (auto [CodeNode, IROp] : CurrentIR.GetCode(BlockNode)) { IREmit->SetWriteCursor(CodeNode); - + if (IROp->Op == OP_LOADCONTEXT) { auto Op = IROp->CW(); @@ -79,7 +79,7 @@ bool StaticRegisterAllocationPass::Run(IREmitter *IREmit) { } auto StaticClass = GeneralClass == GPRClass ? GPRFixedClass : FPRFixedClass; - OrderedNode *sraReg = IREmit->_StoreRegister(val, false, Op->Offset, GeneralClass, StaticClass, Op->Header.Size); + IREmit->_StoreRegister(val, false, Op->Offset, GeneralClass, StaticClass, Op->Header.Size); IREmit->Remove(CodeNode); }