summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-13 05:26:15 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-13 05:26:15 +0000
commit75db6d75297a136698a8e8633b37dce3d4cb7540 (patch)
tree00e39d4d5a61fc53b4fb289d207df9f8aa2c4102 /clang/lib/Analysis/LiveVariables.cpp
parentf3502dbc14f161430006d0efe2e7c5c98fa18c8e (diff)
downloadbcm5719-llvm-75db6d75297a136698a8e8633b37dce3d4cb7540.tar.gz
bcm5719-llvm-75db6d75297a136698a8e8633b37dce3d4cb7540.zip
Fix uninitialized variable.
llvm-svn: 59222
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r--clang/lib/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp
index 4432ac0a53e..03a4bc7eb10 100644
--- a/clang/lib/Analysis/LiveVariables.cpp
+++ b/clang/lib/Analysis/LiveVariables.cpp
@@ -184,7 +184,7 @@ TransferFuncs::BlockStmt_VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) {
// This represents a 'kill' for the variable.
Stmt* Element = S->getElement();
- DeclRefExpr *DR;
+ DeclRefExpr *DR = 0;
VarDecl* VD = 0;
if (DeclStmt* DS = dyn_cast<DeclStmt>(Element))
OpenPOWER on IntegriCloud