Skip to content

Commit d8268af

Browse files
committed
Initialize value.
1 parent 334a576 commit d8268af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/modernize/UseIntegerSignComparisonCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void UseIntegerSignComparisonCheck::check(
114114
assert(SignedCastExpression);
115115

116116
// Ignore the match if we know that the signed int value is not negative.
117-
Expr::EvalResult EVResult;
117+
Expr::EvalResult EVResult = Expr::EvalResult();
118118
if (!SignedCastExpression->isValueDependent() &&
119119
SignedCastExpression->getSubExpr()->EvaluateAsInt(EVResult,
120120
*Result.Context)) {

0 commit comments

Comments
 (0)