Fix for switches in infinite loop decompiler bug

This commit is contained in:
caheckman 2019-05-08 11:13:20 -04:00
parent 0a0b716266
commit efabf89ea2
3 changed files with 10 additions and 5 deletions

View file

@ -326,7 +326,7 @@ public:
BlockWhileDo *newBlockWhileDo(FlowBlock *cond,FlowBlock *cl); ///< Build a new BlockWhileDo
BlockDoWhile *newBlockDoWhile(FlowBlock *condcl); ///< Build a new BlockDoWhile
BlockInfLoop *newBlockInfLoop(FlowBlock *body); ///< Build a new BlockInfLoop
BlockSwitch *newBlockSwitch(const vector<FlowBlock *> &cs); ///< Build a new BlockSwitch
BlockSwitch *newBlockSwitch(const vector<FlowBlock *> &cs,bool hasExit); ///< Build a new BlockSwitch
void orderBlocks(void) { ///< Sort blocks using the final ordering
if (list.size()!=1) sort(list.begin(),list.end(),compareFinalOrder); }