diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index b827db11d..4e5da1649 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -837,7 +837,7 @@ static bool valueFlowForward(Token * const startToken, if (conditionIsTrue(tok2->next()->astOperand2(), getProgramMemory(tok2, varid, *it))) values.erase(it++); else - it++; + ++it; } if (values.empty()) return false;