projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05214f
)
Give user_id a default invalid value so we don't
author
Jason Molenda
<jmolenda@apple.com>
Wed, 15 Oct 2014 23:27:12 +0000
(23:27 +0000)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/lldb/source/Symbol/ClangASTImporter.cpp
b/lldb/source/Symbol/ClangASTImporter.cpp
index
6579afb
..
a925f80
100644
(file)
--- a/
lldb/source/Symbol/ClangASTImporter.cpp
+++ b/
lldb/source/Symbol/ClangASTImporter.cpp
@@
-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();