These conditions are mutually exclusive

This commit is contained in:
Dmitry-Me 2016-03-03 18:01:15 +03:00
parent 180e46ff21
commit 12a5f2509b
1 changed files with 1 additions and 1 deletions

View File

@ -1652,7 +1652,7 @@ static void valueFlowAfterCondition(TokenList *tokenlist, SymbolDatabase* symbol
tokens.push(const_cast<Token*>(rhstok->astOperand2()));
if (rhstok->varId() == varid)
setTokenValue(rhstok, values.front());
if (Token::Match(rhstok, "++|--|=") && Token::Match(rhstok->astOperand1(), "%varid%", varid)) {
else if (Token::Match(rhstok, "++|--|=") && Token::Match(rhstok->astOperand1(), "%varid%", varid)) {
assign = true;
break;
}