[cfe-commits] r59222 - /cfe/trunk/lib/Analysis/LiveVariables.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 12 21:26:15 PST 2008


Author: kremenek
Date: Wed Nov 12 23:26:15 2008
New Revision: 59222

URL: http://llvm.org/viewvc/llvm-project?rev=59222&view=rev
Log:
Fix uninitialized variable.

Modified:
    cfe/trunk/lib/Analysis/LiveVariables.cpp

Modified: cfe/trunk/lib/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/LiveVariables.cpp?rev=59222&r1=59221&r2=59222&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/lib/Analysis/LiveVariables.cpp Wed Nov 12 23:26:15 2008
@@ -184,7 +184,7 @@
   
   // 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))





More information about the cfe-commits mailing list