added removedUnreachableBlocks call for buildCFG

This commit is contained in:
ALEXks
2025-06-29 16:02:37 +03:00
parent 2f53d6ae2e
commit b8f429256f
2 changed files with 4 additions and 1 deletions

View File

@@ -1162,6 +1162,9 @@ map<FuncInfo*, vector<BBlock*>> buildCFG(const map<string, CommonBlock*>& common
if (SgFile::switchToFile(oldFile) == -1)
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
for (auto& [func, blocks] : result)
removedUnreachableBlocks(blocks);
return result;
}