These conditions are mutually exclusive
This commit is contained in:
parent
180e46ff21
commit
12a5f2509b
|
@ -1652,7 +1652,7 @@ static void valueFlowAfterCondition(TokenList *tokenlist, SymbolDatabase* symbol
|
||||||
tokens.push(const_cast<Token*>(rhstok->astOperand2()));
|
tokens.push(const_cast<Token*>(rhstok->astOperand2()));
|
||||||
if (rhstok->varId() == varid)
|
if (rhstok->varId() == varid)
|
||||||
setTokenValue(rhstok, values.front());
|
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;
|
assign = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue