aboutsummaryrefslogtreecommitdiff
path: root/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
commitf8cce1d83e9dc2b175a5f436e8b5bd25e193624b (patch)
tree08d92a7fabef7a8175a0a93e2c42222152c2d9b6 /lib/Analysis/LiveVariables.cpp
parent26fb272713809af97e6f58ca61b8b9dcba37afc7 (diff)
Fix uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVariables.cpp')
-rw-r--r--lib/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LiveVariables.cpp b/lib/Analysis/LiveVariables.cpp
index 4432ac0a53..03a4bc7eb1 100644
--- a/lib/Analysis/LiveVariables.cpp
+++ b/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))