Skip to content

Commit d784e85

Browse files
Update reverseanalyzer.cpp
1 parent 7e6f5e6 commit d784e85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/reverseanalyzer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ namespace {
298298
if (!condTok)
299299
break;
300300
Analyzer::Action condAction = analyzeRecursive(condTok);
301+
if (condAction.isModified())
302+
break;
301303
const bool inLoop = Token::Match(condTok->astTop()->previous(), "for|while (");
302304
// Evaluate condition of for and while loops first
303305
if (inLoop) {
304306
if (Token::findmatch(tok->link(), "goto|break", tok))
305307
break;
306-
if (condAction.isModified())
307-
break;
308308
valueFlowGenericForward(condTok, analyzer, tokenlist, errorLogger, settings);
309309
}
310310
Token* thenEnd;

0 commit comments

Comments
 (0)