diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-02 17:46:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-02 17:47:23 +0100 |
commit | 88a031e593e0a16881132b08d162ed40a5549d23 (patch) | |
tree | 74e8cb46147fc24961762e3a0e7d56a8407e75a2 /compilerplugins | |
parent | 2116ca54115ddf9877b1cbd7f269a554a0760749 (diff) |
Missing initialization
Change-Id: I45eabbe9d1a4e3f85f16c2869c4031fc06f5ef31
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/literaltoboolconversion.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/literaltoboolconversion.cxx b/compilerplugins/clang/literaltoboolconversion.cxx index caae89bc778f..65fe53cdcfba 100644 --- a/compilerplugins/clang/literaltoboolconversion.cxx +++ b/compilerplugins/clang/literaltoboolconversion.cxx @@ -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) { |