ValueFlow: result of ? is not 'known'
This commit is contained in:
parent
61cf224f32
commit
577ab1c2ac
|
@ -367,6 +367,9 @@ static void setTokenValue(Token* tok, const ValueFlow::Value &value)
|
|||
ValueFlow::Value v(value);
|
||||
v.conditional = true;
|
||||
|
||||
if (v.valueKind == ValueFlow::Value::Known)
|
||||
v.valueKind = ValueFlow::Value::Possible;
|
||||
|
||||
if (!variables.empty())
|
||||
v.varId = *(variables.begin());
|
||||
|
||||
|
|
Loading…
Reference in New Issue