Merge pull request #3411 from pmatos/AccessNullptr

Clean up access to possible nullptr
This commit is contained in:
Ryan Houdek authored and GitHub committed 2024-02-06 04:52:28 -08:00
commit cdcc432399
1 file changed
+1 -3
@@ -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) {