[cfe-commits] r64769 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Mike Stump mrs at apple.com
Tue Feb 17 09:18:37 PST 2009


Author: mrs
Date: Tue Feb 17 11:18:36 2009
New Revision: 64769

URL: http://llvm.org/viewvc/llvm-project?rev=64769&view=rev
Log:
Be sure to initialize Name.

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=64769&r1=64768&r2=64769&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Tue Feb 17 11:18:36 2009
@@ -147,7 +147,7 @@
     Elts.push_back(C);
 
     // __FuncPtr
-    const char *Name;
+    const char *Name = "";
     if (const NamedDecl *ND = dyn_cast<NamedDecl>(CurFuncDecl))
       Name = ND->getNameAsCString();
     BlockInfo Info(0, Name);





More information about the cfe-commits mailing list