expression substitution: hotfix for recent commits (typo at condition) #26

Merged
Alexander_KS merged 1 commits from dead_code_removing into master 2024-02-03 05:58:28 +00:00
Showing only changes of commit 37435104a7 - Show all commits

View File

@@ -1287,7 +1287,7 @@ bool isArgReaches(int decl_instr, SAPFOR::BasicBlock* decl_bb,
reachable = banned_blocks;
worklist = reachable;
while (worklist.size() != 0 || banned_instructions.size() == 0)
while (worklist.size() != 0 && banned_instructions.size() != 0)
{
if(worklist.find(dest_bb) != worklist.end())
return false;