Skip to content

Commit

Permalink
jit-ir: Avoid crash in stack walk.
Browse files Browse the repository at this point in the history
This can happen if something is data, I suppose, and not a valid block.
  • Loading branch information
unknownbrackets committed Jul 3, 2016
1 parent 4578c3c commit 1de4943
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Core/MIPS/IR/IRJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1de4943

Please sign in to comment.