clean up jump check

This commit is contained in:
zilmar 2012-10-23 04:03:49 +11:00
parent f6e7199118
commit cf1ea3484e
1 changed files with 3 additions and 1 deletions

View File

@ -233,7 +233,9 @@ bool LoopAnalysis::CheckLoopRegisterUsage( CCodeSection * Section)
{
_Notify->BreakPoint(__FILE__,__LINE__);
}
if (Section->m_Jump.TargetPC != m_PC + ((short)m_Command.offset << 2) + 4)
if (Section->m_Jump.TargetPC != m_PC + ((short)m_Command.offset << 2) + 4 &&
Section->m_JumpSection != NULL &&
Section->m_Jump.TargetPC != (DWORD)-1)
{
_Notify->BreakPoint(__FILE__,__LINE__);
}