[CPU] Check if flags pointer exists

There is specific situation in FM4 on terminating thread that runs dll
where flags pointer doesn't exist
This commit is contained in:
Gliniak 2023-01-09 16:13:09 +01:00
parent d24d3295c6
commit ea1003c6bf
1 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,9 @@ void PPCHIRBuilder::SetReturnAddress(Value* value) {
XexModule* xexmod = dynamic_cast<XexModule*>(mod);
if (xexmod) {
auto flags = xexmod->GetInstructionAddressFlags(value->AsUint32());
flags->is_return_site = true;
if (flags) {
flags->is_return_site = true;
}
}
}
}