Skip to content

Commit 7518e76

Browse files
committed
Fix double traversal of HLIL switch case contents when not in AST form
1 parent da698e7 commit 7518e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

highlevelilinstruction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,8 @@ void HighLevelILInstruction::CollectSubExprs(stack<size_t>& toProcess) const
11031103
toProcess.push(GetConditionExpr<HLIL_SWITCH>().exprIndex);
11041104
break;
11051105
case HLIL_CASE:
1106-
toProcess.push(GetTrueExpr<HLIL_CASE>().exprIndex);
1106+
if (ast)
1107+
toProcess.push(GetTrueExpr<HLIL_CASE>().exprIndex);
11071108
exprs = GetValueExprs<HLIL_CASE>();
11081109
for (auto i = exprs.rbegin(); i != exprs.rend(); ++i)
11091110
toProcess.push(i->exprIndex);

0 commit comments

Comments
 (0)