Refactor block position <-> address index map

This commit is contained in:
caheckman 2020-02-18 11:13:37 -05:00
parent f779dab216
commit ad005086ab
3 changed files with 93 additions and 67 deletions

View file

@ -610,7 +610,7 @@ void Funcdata::installSwitchDefaults(void)
PcodeOp *indop = jt->getIndirectOp();
BlockBasic *ind = indop->getParent();
// Mark any switch blocks default edge
if (jt->getMostCommon() != ~((uint4)0)) // If a mostcommon was found
if (jt->getMostCommon() != -1) // If a mostcommon was found
ind->setDefaultSwitch(jt->getMostCommon());
}
}