Skip to content

Commit d247145

Browse files
committed
asImpossible
1 parent ae9feb0 commit d247145

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/valueflowfast.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3492,16 +3492,9 @@ static bool isBreakScope(const Token* const endToken)
34923492
return Token::findmatch(endToken->link(), "break|goto", endToken);
34933493
}
34943494

3495-
static ValueFlow::Value asImpossible(ValueFlow::Value v)
3496-
{
3497-
v.invertRange();
3498-
v.setImpossible();
3499-
return v;
3500-
}
3501-
35023495
static void insertImpossible(std::list<ValueFlow::Value>& values, const std::list<ValueFlow::Value>& input)
35033496
{
3504-
std::transform(input.begin(), input.end(), std::back_inserter(values), &asImpossible);
3497+
std::transform(input.begin(), input.end(), std::back_inserter(values), &ValueFlow::asImpossible);
35053498
}
35063499

35073500
static std::vector<const Variable*> getExprVariables(const Token* expr,

0 commit comments

Comments
 (0)