[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:
parent
d24d3295c6
commit
ea1003c6bf
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue