mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-12 10:29:24 +00:00
Clean up access to possible nullptr
Patch suggested by @Sonicadvance1
This commit is contained in:
parent
5e5984a29b
commit
fa8bcfd67a
@ -112,8 +112,6 @@ void OpDispatchBuilder::SyscallOp(OpcodeArgs) {
|
||||
auto NewRIP = GetRelocatedPC(Op, -Op->InstSize);
|
||||
_StoreContext(GPRSize, GPRClass, NewRIP, offsetof(FEXCore::Core::CPUState, rip));
|
||||
|
||||
const auto& GPRIndicesRef = *GPRIndexes;
|
||||
|
||||
OrderedNode *Arguments[SyscallArgs] {
|
||||
InvalidNode,
|
||||
InvalidNode,
|
||||
@ -124,7 +122,7 @@ void OpDispatchBuilder::SyscallOp(OpcodeArgs) {
|
||||
InvalidNode,
|
||||
};
|
||||
for (size_t i = 0; i < NumArguments; ++i) {
|
||||
Arguments[i] = LoadGPRRegister(GPRIndicesRef[i]);
|
||||
Arguments[i] = LoadGPRRegister(GPRIndexes->at(i));
|
||||
}
|
||||
|
||||
if (IsSyscallInst) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user