mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-07 09:38:18 +00:00
jit-ir: Avoid crash in stack walk.
This can happen if something is data, I suppose, and not a valid block.
This commit is contained in:
parent
4578c3cb54
commit
1de4943632
@ -230,7 +230,10 @@ bool IRBlock::OverlapsRange(u32 addr, u32 size) {
|
||||
|
||||
MIPSOpcode IRJit::GetOriginalOp(MIPSOpcode op) {
|
||||
IRBlock *b = blocks_.GetBlock(op.encoding & 0xFFFFFF);
|
||||
return b->GetOriginalFirstOp();
|
||||
if (b) {
|
||||
return b->GetOriginalFirstOp();
|
||||
}
|
||||
return op;
|
||||
}
|
||||
|
||||
} // namespace MIPSComp
|
||||
|
Loading…
x
Reference in New Issue
Block a user