forked from OSchip/llvm-project
Fix uninitialized variable warnings. NFCI.
llvm-svn: 374876
This commit is contained in:
parent
095531ea94
commit
4706f3be88
|
@ -2579,10 +2579,10 @@ ExpectedDecl ASTNodeImporter::VisitRecordDecl(RecordDecl *D) {
|
|||
}
|
||||
|
||||
// Import the major distinguishing characteristics of this record.
|
||||
DeclContext *DC, *LexicalDC;
|
||||
DeclContext *DC = nullptr, *LexicalDC = nullptr;
|
||||
DeclarationName Name;
|
||||
SourceLocation Loc;
|
||||
NamedDecl *ToD;
|
||||
NamedDecl *ToD = nullptr;
|
||||
if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc))
|
||||
return std::move(Err);
|
||||
if (ToD)
|
||||
|
|
Loading…
Reference in New Issue