AOTIR: Remove redundant variable declarations

This code was already using structured bindings anyway and just reassigned
the values to different variables.
This commit is contained in:
Tony Wasserka 2024-05-21 17:38:41 +02:00
parent baef95992c
commit f8f165d96d

View File

@ -744,21 +744,7 @@ uintptr_t ContextImpl::CompileBlock(FEXCore::Core::CpuStateFrame* Frame, uint64_
return HostCode;
}
void* CodePtr {};
FEXCore::IR::IRListView* IRList {};
FEXCore::Core::DebugData* DebugData {};
bool GeneratedIR {};
uint64_t StartAddr {}, Length {};
auto [Code, IR, Data, RAData, Generated, _StartAddr, _Length] = CompileCode(Thread, GuestRIP, MaxInst);
CodePtr = Code;
IRList = IR;
DebugData = Data;
GeneratedIR = Generated;
StartAddr = _StartAddr;
Length = _Length;
auto [CodePtr, IRList, DebugData, RAData, GeneratedIR, StartAddr, Length] = CompileCode(Thread, GuestRIP, MaxInst);
if (CodePtr == nullptr) {
return 0;
}