Give user_id a default invalid value so we don't
authorJason Molenda <jmolenda@apple.com>
Wed, 15 Oct 2014 23:27:12 +0000 (23:27 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 15 Oct 2014 23:27:12 +0000 (23:27 +0000)
possibly use it uninitialized in a log message later.
clang static analyzer fixit.

llvm-svn: 219865

lldb/source/Symbol/ClangASTImporter.cpp

index 6579afb..a925f80 100644 (file)
@@ -86,7 +86,7 @@ ClangASTImporter::CopyDecl (clang::ASTContext *dst_ast,
 
             if (log)
             {
-                lldb::user_id_t user_id;
+                lldb::user_id_t user_id = LLDB_INVALID_UID;
                 ClangASTMetadata *metadata = GetDeclMetadata(decl);
                 if (metadata)
                     user_id = metadata->GetUserID();