Missing initialization

Change-Id: I45eabbe9d1a4e3f85f16c2869c4031fc06f5ef31
This commit is contained in:
Stephan Bergmann
2015-03-02 17:46:45 +01:00
parent 2116ca5411
commit 88a031e593

View File

@@ -43,7 +43,7 @@ bool LiteralToBoolConversion::VisitImplicitCastExpr(
return true;
}
Expr const * sub = expr->getSubExpr()->IgnoreParenCasts();
Expr const * expr2;
Expr const * expr2 = expr;
for (;;) {
BinaryOperator const * op = dyn_cast<BinaryOperator>(sub);
if (op == nullptr || op->getOpcode() != BO_Comma) {